From 1f7cb7e27bac9b18834402ccff30685f69dd838c Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 6 Nov 2014 22:22:11 -0500 Subject: curl: Fix detection of headers with dependencies Restore the check_include_file_concat functionality broken in upstream curl. The header on older OS X versions depends on begin included first, for example. --- Utilities/cmcurl/CMake/Macros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/cmcurl/CMake/Macros.cmake b/Utilities/cmcurl/CMake/Macros.cmake index c770a55..0f8eb57 100644 --- a/Utilities/cmcurl/CMake/Macros.cmake +++ b/Utilities/cmcurl/CMake/Macros.cmake @@ -12,7 +12,7 @@ endmacro(CHECK_LIBRARY_EXISTS_CONCAT) # Check if header file exists and add it to the list. macro(CHECK_INCLUDE_FILE_CONCAT FILE VARIABLE) - check_include_file("${FILE}" ${VARIABLE}) + check_include_files("${CURL_INCLUDES};${FILE}" ${VARIABLE}) if(${VARIABLE}) set(CURL_INCLUDES ${CURL_INCLUDES} ${FILE}) set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${VARIABLE}") -- cgit v0.12