libarchive: Put local include dir first

In libarchive we configure an internal header file called 'config.h'.
This commits moves the include directory containing the file to the
beginning of the include path to avoid conflicts from system headers.
This commit is contained in:
Brad King 2009-11-09 13:38:29 -05:00
parent 4a2f809124
commit 665ac8d4a4
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,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)
#