[Openmp-commits] [clang] [openmp] [Libomp] Place generated OpenMP headers into build resource directory (PR #88007)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 8 13:10:55 PDT 2024


================
@@ -10,12 +10,19 @@
 
 include(ExtendPath)
 
+# The generated headers will be placed in clang's resource directory if present.
+if(${OPENMP_STANDALONE_BUILD})
+  set(LIBOMP_HEADERS_INTDIR ${CMAKE_CURRENT_BINARY_DIR})
+else()
+  set(LIBOMP_HEADERS_INTDIR ${LLVM_BINARY_DIR}/${LIBOMP_HEADERS_INSTALL_PATH})
----------------
jhuber6 wrote:

Done to match `LLVM_RUNTIME_OUTPUT_INTDIR` conceptually, It's just intermediate directory. I.e. not where it's being installed, but where it's stored in the build.

https://github.com/llvm/llvm-project/pull/88007


More information about the Openmp-commits mailing list