mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
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:
@@ -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)
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user