Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions openmp/runtime/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

include(ExtendPath)

# The generated headers will be placed in clang's resource directory if present.
if(NOT LLVM_TREE_AVAILABLE)
set(LIBOMP_HEADERS_INTDIR ${CMAKE_CURRENT_BINARY_DIR})
else()
# The generated headers will be placed in clang's resource if using it to
# compile openmp in a runtimes-bootstrapping build.
if(LLVM_TREE_AVAILABLE AND LLVM_RUNTIMES_BUILD)
set(LIBOMP_HEADERS_INTDIR ${LLVM_BINARY_DIR}/${LIBOMP_HEADERS_INSTALL_PATH})
else()
set(LIBOMP_HEADERS_INTDIR ${CMAKE_CURRENT_BINARY_DIR})
endif()

# Configure omp.h, kmp_config.h and omp-tools.h if necessary
Expand Down
Loading