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>
This commit is contained in:
João Valverde 2016-02-05 23:33:59 +00:00 committed by Alexis La Goutte
parent a9c3556fee
commit e81cbe6e19
1 changed files with 2 additions and 4 deletions

View File

@ -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()