[Openmp-commits] [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 09:09:43 PDT 2024
================
@@ -419,15 +426,15 @@ else()
endif()
install(
FILES
- ${CMAKE_CURRENT_BINARY_DIR}/omp.h
- ${CMAKE_CURRENT_BINARY_DIR}/ompx.h
+ ${LIBOMP_HEADERS_INTDIR}/omp.h
+ ${LIBOMP_HEADERS_INTDIR}/ompx.h
DESTINATION ${LIBOMP_HEADERS_INSTALL_PATH}
)
if(${LIBOMP_OMPT_SUPPORT})
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/omp-tools.h DESTINATION ${LIBOMP_HEADERS_INSTALL_PATH})
+ install(FILES ${LIBOMP_HEADERS_INTDIR}/omp-tools.h DESTINATION ${LIBOMP_HEADERS_INSTALL_PATH})
# install under legacy name ompt.h
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/omp-tools.h DESTINATION ${LIBOMP_HEADERS_INSTALL_PATH} RENAME ompt.h)
- set(LIBOMP_OMP_TOOLS_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
+ install(FILES ${LIBOMP_HEADERS_INTDIR}/omp-tools.h DESTINATION ${LIBOMP_HEADERS_INSTALL_PATH} RENAME ompt.h)
+ set(LIBOMP_OMP_TOOLS_INCLUDE_DIR ${LIBOMP_HEADERS_INTDIR} PARENT_SCOPE)
----------------
jhuber6 wrote:
FYI this is only required if the build is standalone now. The regular build will always have these included via the resource dir now.
https://github.com/llvm/llvm-project/pull/88007
More information about the Openmp-commits
mailing list