Provide fallback for LLVM_INCLUDE_DIRS
In standalone builds, it could otherwise happen that the variable is not set during the first CMake invocation and tests fail because they are unable to locate the LLVM headers.
This commit is contained in:
parent
cbd1dcf8da
commit
aacb57ada4
@ -190,6 +190,9 @@ else()
|
||||
set (CLANG_INCLUDE_DIRS "${CLANG_INCLUDE_DIRS}"
|
||||
"${LLVM_BINARY_DIR}/tools/clang/include")
|
||||
endif()
|
||||
if (NOT LLVM_INCLUDE_DIRS)
|
||||
set (LLVM_INCLUDE_DIRS "${LLVM_MAIN_SRC_DIR}/include" "${LLVM_BINARY_DIR}/include")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if( NOT "NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user