summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-09 18:38:29 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-09 18:38:29 (GMT)
commit665ac8d4a49630ff632141ecd5fb32584d551a43 (patch)
tree3c9bb82b6e0d3761a21ad7ba2f19a0e25bb6bf50 /Utilities/cmlibarchive
parent4a2f8091243372b4c58651ea643ffd1d8e48d8f4 (diff)
downloadCMake-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/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt2
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)
#