summaryrefslogtreecommitdiffstats
path: root/wifi/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2012-10-26 13:56:01 +0200
committerSlávek Banko <[email protected]>2012-10-26 13:56:01 +0200
commit93dc872306fb4daa2eda10382fff841fd6b9bcdc (patch)
treec1d99224be66d930daaa4cd2fc0cd497f17b7bc3 /wifi/ConfigureChecks.cmake
parentf425336eafb815261cb12eace29ec0c766cfdd68 (diff)
downloadtdenetwork-93dc872306fb4daa2eda10382fff841fd6b9bcdc.tar.gz
tdenetwork-93dc872306fb4daa2eda10382fff841fd6b9bcdc.zip
Fix various cmake build issues
Diffstat (limited to 'wifi/ConfigureChecks.cmake')
-rw-r--r--wifi/ConfigureChecks.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/ConfigureChecks.cmake b/wifi/ConfigureChecks.cmake
index f3a7ddb2..0d2972b1 100644
--- a/wifi/ConfigureChecks.cmake
+++ b/wifi/ConfigureChecks.cmake
@@ -21,7 +21,9 @@ endif( )
# check for wireless tools
+tde_save_and_set( CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-lm" )
check_library_exists( iw iw_get_stats "" HAVE_IW )
+tde_restore( CMAKE_REQUIRED_FLAGS )
if( HAVE_IW )
check_include_file( iwlib.h HAVE_IWLIB_H )
# we need at least wireless tools >= 27