aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2011-03-17 19:03:04 +0000
committerOscar Fuentes <ofv@wanadoo.es>2011-03-17 19:03:04 +0000
commit617508fb9e33e756f51246df977251e8c8699267 (patch)
tree5281d251037d31ea5f6f97a9ae7a686672470814 /CMakeLists.txt
parent0133917074027e4bd5cd6dabb9da03a6214a21b6 (diff)
Fix some issues with include directories: remove a duplicate and put
Clang binary and source directories first (on that order). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6fa01d4ee1..6ebe3c4f60 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,9 +40,6 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories("${PATH_TO_LLVM_BUILD}/include" "${LLVM_MAIN_INCLUDE_DIR}")
- if( NOT PATH_TO_LLVM_BUILD STREQUAL LLVM_MAIN_SRC_DIR )
- include_directories("${LLVM_MAIN_INCLUDE_DIR}")
- endif()
link_directories("${PATH_TO_LLVM_BUILD}/lib")
set(LLVM_TABLEGEN_EXE "${PATH_TO_LLVM_BUILD}/bin/tblgen")
@@ -211,9 +208,9 @@ macro(add_clang_executable name)
set_target_properties(${name} PROPERTIES FOLDER "Clang executables")
endmacro(add_clang_executable)
-include_directories(
- ${CMAKE_CURRENT_SOURCE_DIR}/include
+include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/include
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
)
install(DIRECTORY include/