mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
Final fix for check_include_file
Per disucssion with arclance in #166, the call to check_include_file has been migrated back to check_include_files and the required define set in CMAKE_REQUIRED_DEFINITIONS. This properly removes the dependancy on the check_include_file module. Third time is a charm!
This commit is contained in:
parent
9f9a2f262f
commit
ce08b9fe7b
@ -141,7 +141,8 @@ if(BUILD_MYSQL)
|
||||
endif(BUILD_MYSQL)
|
||||
|
||||
if(BUILD_WLAN)
|
||||
check_include_file(iwlib.h IWLIB_H -D_GNU_SOURCE)
|
||||
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
|
||||
check_include_files(iwlib.h IWLIB_H)
|
||||
if(NOT IWLIB_H)
|
||||
message(FATAL_ERROR "Unable to find iwlib.h")
|
||||
endif(NOT IWLIB_H)
|
||||
|
Loading…
Reference in New Issue
Block a user