Description: on Linux, the pow10 function check fails. we should link against math library. Author: Fathi Boudra --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,9 @@ CHECK_INCLUDE_FILES(byteswap.h HAVE_BYTE ########### Check functions ########### INCLUDE(CheckFunctionExists) CHECK_FUNCTION_EXISTS(tzset HAVE_TZSET) +SET(CMAKE_REQUIRED_LIBRARIES "-lm") CHECK_FUNCTION_EXISTS(pow10 HAVE_POW10) +SET(CMAKE_REQUIRED_LIBRARIES) CHECK_FUNCTION_EXISTS(setlocale HAVE_SETLOCALE) CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)