diff --git a/CMakeLists.txt b/CMakeLists.txt index 1db0d84d..e93f1bdd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) endif() #--- perform some checks and generate the config.h ---------------------------- + +#--- the next two lines are needed that the math functions are found ---------- +set(CMAKE_REQUIRED_INCLUDES math.h) +set(CMAKE_REQUIRED_LIBRARIES m) + include(CheckTypeSize) include(CheckIncludeFiles) include(CheckFunctionExists)