summaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 4e896b6e07..d9d3ca8efb 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -96,11 +96,9 @@ cmake_pop_check_state()
# Use check_symbol_exists just in case math.h does something magic
# and there's not actually a function named floorl()
#
-if(UNIX)
- set(_mathlib m)
-endif()
cmake_push_check_state()
-set(CMAKE_REQUIRED_LIBRARIES ${_mathlib})
+set(CMAKE_REQUIRED_INCLUDES ${M_INCLUDE_DIRS})
+set(CMAKE_REQUIRED_LIBRARIES ${M_LIBRARIES})
check_symbol_exists("floorl" "math.h" HAVE_FLOORL)
cmake_pop_check_state()