llvm.org GIT mirror llvm / d7808d2
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 Oscar Fuentes 8 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
127127
128128
129129 macro(add_llvm_target target_name)
130 include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
130 include_directories(BEFORE
131 ${CMAKE_CURRENT_BINARY_DIR}
132 ${CMAKE_CURRENT_SOURCE_DIR})
131133 add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT})
132134 set( CURRENT_LLVM_TARGET LLVM${target_name} )
133135 endmacro(add_llvm_target)