CMakeLists.txt
changeset 9080 2e4e71ec140f
parent 9077 28e6de55eb07
child 9081 39eb61ccbc82
equal deleted inserted replaced
9079:373df87521e5 9080:2e4e71ec140f
   494     foreach(_FN
   494     foreach(_FN
   495             malloc calloc realloc free qsort abs memset memcpy memmove memcmp
   495             malloc calloc realloc free qsort abs memset memcpy memmove memcmp
   496             strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   496             strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
   497             _ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
   497             _ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
   498             _stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
   498             _stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
   499             cosf fabs floor log pow round scalbn sin sinf sqrt sqrtf tan tanf)
   499             cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
   500       string(TOUPPER ${_FN} _UPPER)
   500       string(TOUPPER ${_FN} _UPPER)
   501       set(HAVE_${_UPPER} 1)
   501       set(HAVE_${_UPPER} 1)
   502     endforeach()
   502     endforeach()
   503     if(NOT CYGWIN AND NOT MINGW)
   503     if(NOT CYGWIN AND NOT MINGW)
   504       set(HAVE_ALLOCA 1)
   504       set(HAVE_ALLOCA 1)
   540 
   540 
   541     check_library_exists(m pow "" HAVE_LIBM)
   541     check_library_exists(m pow "" HAVE_LIBM)
   542     if(HAVE_LIBM)
   542     if(HAVE_LIBM)
   543       set(CMAKE_REQUIRED_LIBRARIES m)
   543       set(CMAKE_REQUIRED_LIBRARIES m)
   544       foreach(_FN
   544       foreach(_FN
   545               atan atan2 ceil copysign cos cosf fabs floor log pow round scalbn sin
   545               atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
   546               sinf sqrt sqrtf tan tanf)
   546               sinf sqrt sqrtf tan tanf)
   547         string(TOUPPER ${_FN} _UPPER)
   547         string(TOUPPER ${_FN} _UPPER)
   548         set(_HAVEVAR "HAVE_${_UPPER}")
   548         set(_HAVEVAR "HAVE_${_UPPER}")
   549         check_function_exists("${_FN}" ${_HAVEVAR})
   549         check_function_exists("${_FN}" ${_HAVEVAR})
   550       endforeach()
   550       endforeach()