diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-02-14 20:14:11 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-02-14 20:14:11 +0000 |
commit | b641f08cbee230ce872b37816d241cef081af803 (patch) | |
tree | 75f63603225a6c0be649677479fe5fd99ee0bb64 /CMakeLists.txt | |
parent | 6173ef4a0a204f9627ece97573f2e95017f04547 (diff) | |
download | clang-b641f08cbee230ce872b37816d241cef081af803.tar.gz |
Add current binary and source directories to the header search list
for all compiler invocations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4189739521..fb5933fd95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR ) set(LLVM_MAIN_INCLUDE_DIR "${LLVM_MAIN_SRC_DIR}/include") set(LLVM_BINARY_DIR ${CMAKE_BINARY_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}") |