cmake: make sure that gcc built-in functions are found.
This commit is contained in:
parent
6883249117
commit
104d18c333
@ -27,6 +27,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
#--- perform some checks and generate the config.h ----------------------------
|
#--- 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(CheckTypeSize)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user