diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2011-07-25 20:17:01 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2011-07-25 20:17:01 +0000 |
commit | d7808d23ad0d0ae890598921060d8ddd4899d86a (patch) | |
tree | dd942094321f6fe116071c2f58c1ce509774e075 | |
parent | 39055b3a5c9044b18846361b9ebd8e289356cb99 (diff) | |
download | external_llvm-d7808d23ad0d0ae890598921060d8ddd4899d86a.zip external_llvm-d7808d23ad0d0ae890598921060d8ddd4899d86a.tar.gz external_llvm-d7808d23ad0d0ae890598921060d8ddd4899d86a.tar.bz2 |
While building a LLVM target, put the current source directory on the
header search path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135952 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | cmake/modules/AddLLVM.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index daeb467..abc14d0 100755 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -128,7 +128,9 @@ endmacro(add_llvm_utility name) macro(add_llvm_target target_name) - include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}) + include_directories(BEFORE + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}) add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT}) set( CURRENT_LLVM_TARGET LLVM${target_name} ) endmacro(add_llvm_target) |