LiangliangNan/MVStudio
3rd_party/nlopt/CMakeLists.txt
:119
check_function_exists (isnan HAVE_ISNAN)
check_function_exists (isnan HAVE_ISNAN)
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
check_symbol_exists (isnan math.h HAVE_ISNAN)
check_function_exists(isnan HAVE_ISNAN)
check_function_exists (isnan HAVE_ISNAN)
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
check_cxx_symbol_exists ("isnan" "cmath" HAVE_ISNAN)
check_function_exists (isnan HAVE_ISNAN)
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
CHECK_FUNCTION_EXISTS("isnan" HAVE_ISNAN)
check_symbol_exists (isnan "${_math_h}" HAVE_ISNAN)
check_cxx_source_compiles("int test = std::isnan(0.0)" HAVE_ISNAN)
CHECK_SYMBOL_EXISTS(isnan math.h HAVE_ISNAN)
list( APPEND DEFINES
PRIVATE
#
# We need the dbpage table for space calculations.
#
SQLITE_ENABLE_DBPAGE_VTAB=1
# Can't be set after a WAL mode database is initialized, so change
# the default here to ensure all project files get the same page
# size.
SQLITE_DEFAULT_PAGE_SIZE=65536
#
# Recommended in SQLite docs
#
SQLITE_DQS=0
SQLITE_DEFAULT_MEMSTATUS=0
SQLITE_DEFAULT_SYNCHRONOUS=1
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
SQLITE_LIKE_DOESNT_MATCH_BLOBS
SQLITE_MAX_EXPR_DEPTH=0
SQLITE_OMIT_DEPRECATED
SQLITE_OMIT_SHARED_CACHE
SQLITE_USE_ALLOCA
SQLITE_OMIT_AUTOINIT
$<$<BOOL:${HAVE_FDATASYNC}>:HAVE_FDATASYNC>
$<$<BOOL:${HAVE_GMTIME_R}>:HAVE_GMTIME_R>
$<$<BOOL:${HAVE_ISNAN}>:HAVE_ISNAN>
$<$<BOOL:${HAVE_LOCALTIME_R}>:HAVE_LOCALTIME_R>
$<$<BOOL:${HAVE_LOCALTIME_S}>:HAVE_LOCALTIME_S>
)
CHECK_CXX_SOURCE_COMPILES("#include <math.h>
int main() {isnan(0); return 1;}" HAVE_ISNAN)