]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Put local include dir first
authorBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:35:12 +0000 (11:35 -0500)
committerBrad King <brad.king@kitware.com>
Mon, 16 Nov 2009 16:35:12 +0000 (11:35 -0500)
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

CMakeLists.txt

index b8f5b56489cc408f5b34fcad8bda82cd9dc28ff3..a62e164a90e92263a2685ac7f456bc6e99fe8dba 100644 (file)
@@ -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)
 
 #