From: Tim Kientzle Date: Sun, 18 Jan 2009 19:19:56 +0000 (-0500) Subject: This macro file was looking for its companion C code in the binary dir, X-Git-Tag: v2.7.0~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bcc45cfe346676dc3c8dccd14cabd15904c769;p=thirdparty%2Flibarchive.git This macro file was looking for its companion C code in the binary dir, it should have been looking in the source dir. SVN-Revision: 441 --- diff --git a/cmake/CheckHeaderSTDC.cmake b/cmake/CheckHeaderSTDC.cmake index 6dd29cbfb..078f43c2b 100644 --- a/cmake/CheckHeaderSTDC.cmake +++ b/cmake/CheckHeaderSTDC.cmake @@ -27,7 +27,7 @@ MACRO (CHECK_HEADER_STDC) TRY_RUN(CHECK_HEADER_STDC_result CHECK_HEADER_STDC_compile_result ${CMAKE_BINARY_DIR} - ${CMAKE_BINARY_DIR}/cmake/CheckHeaderSTDC.c + ${CMAKE_SOURCE_DIR}/cmake/CheckHeaderSTDC.c COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_HEADER_STDC_FLAGS}