From: Brad King Date: Mon, 16 Nov 2009 16:35:12 +0000 (-0500) Subject: Put local include dir first X-Git-Tag: v2.8.0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a1e844ecb70fbed1d2f6a222c58cc903a5b05f1;p=thirdparty%2Flibarchive.git Put local include dir first We configure a header file called "config.h" so the local include directory should go first to avoid conflicts from system headers. SVN-Revision: 1663 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b8f5b5648..a62e164a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -694,7 +694,7 @@ CHECK_C_SOURCE_RUNS(" # Generate "config.h" from "build/cmake/config.h.in" CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) -INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) +INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) ADD_DEFINITIONS(-DHAVE_CONFIG_H) #