From fbb38028cb9fd2987a2d75b753f7f8cf4655100e Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Sat, 9 Jun 2018 17:32:33 +0200 Subject: [PATCH] cmake: make sure that gcc built-in functions are found. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)