diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-05 23:33:59 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2016-02-06 07:21:48 +0000 |
commit | e81cbe6e199acd83b18e96b1344478891e5c49a0 (patch) | |
tree | fea89a269b68dace3f2b9a538aadb9eeb5aff244 /ConfigureChecks.cmake | |
parent | a9c3556fee8ae75f565f8f3ee65f747a24fdfb67 (diff) |
CMake: Minor ConfigureChecks.cmake cleanup
Change-Id: Ib58aaf218bf1440e6c02665c8274fe2bee73978f
Reviewed-on: https://code.wireshark.org/review/13783
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 6 |
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() |