diff options
author | Brad King <brad.king@kitware.com> | 2009-11-09 18:38:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-09 18:38:29 (GMT) |
commit | 665ac8d4a49630ff632141ecd5fb32584d551a43 (patch) | |
tree | 3c9bb82b6e0d3761a21ad7ba2f19a0e25bb6bf50 /Utilities | |
parent | 4a2f8091243372b4c58651ea643ffd1d8e48d8f4 (diff) | |
download | CMake-665ac8d4a49630ff632141ecd5fb32584d551a43.zip CMake-665ac8d4a49630ff632141ecd5fb32584d551a43.tar.gz CMake-665ac8d4a49630ff632141ecd5fb32584d551a43.tar.bz2 |
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.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibarchive/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt index 990bee2..6fd0086 100644 --- a/Utilities/cmlibarchive/CMakeLists.txt +++ b/Utilities/cmlibarchive/CMakeLists.txt @@ -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) # |