While building a LLVM target, put the current source directory on the
authorOscar Fuentes <ofv@wanadoo.es>
Mon, 25 Jul 2011 20:17:01 +0000 (20:17 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Mon, 25 Jul 2011 20:17:01 +0000 (20:17 +0000)
header search path.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135952 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index daeb46719c69b90433a241a255f507e7a02fb7b4..abc14d0d374d20357906a0f8f366d87325637ae3 100755 (executable)
@@ -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)