From ce08b9fe7b20454870a4aae20b442da24ce51dcd Mon Sep 17 00:00:00 2001 From: Casey Webster Date: Tue, 1 Dec 2015 12:39:17 -0500 Subject: [PATCH] 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! --- cmake/ConkyPlatformChecks.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/ConkyPlatformChecks.cmake b/cmake/ConkyPlatformChecks.cmake index 2bf4c0a9..208dc121 100644 --- a/cmake/ConkyPlatformChecks.cmake +++ b/cmake/ConkyPlatformChecks.cmake @@ -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)