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:
parent
4a2f809124
commit
665ac8d4a4
|
@ -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)
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue