added cmake policy for initial math tests.

This commit is contained in:
suter_a 2018-10-12 16:27:18 +02:00
parent 70013be8fc
commit fab31e13c7

View File

@ -28,7 +28,8 @@ endif()
#--- perform some checks and generate the config.h ----------------------------
#--- the next two lines are needed that the math functions are found ----------
#--- the next three lines are needed that the math functions are found --------
cmake_policy(SET CMP0075 NEW)
set(CMAKE_REQUIRED_INCLUDES math.h)
set(CMAKE_REQUIRED_LIBRARIES m)