[Openmp-commits] [openmp] 23d906e - [openmp] Fix export file paths (#202692)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jun 12 04:27:50 PDT 2026
Author: Michael Kruse
Date: 2026-06-12T13:27:46+02:00
New Revision: 23d906e24b06f27749c84229e4a3043b7e63a2d5
URL: https://github.com/llvm/llvm-project/commit/23d906e24b06f27749c84229e4a3043b7e63a2d5
DIFF: https://github.com/llvm/llvm-project/commit/23d906e24b06f27749c84229e4a3043b7e63a2d5.diff
LOG: [openmp] Fix export file paths (#202692)
The files omp_lib.h and omp-tools.h are the outputs of two
configure_file invocations which specify the full path of the outputs.
Use these full paths in LibompExports.cmake so they can actually be
found.
Added:
Modified:
openmp/runtime/cmake/LibompExports.cmake
Removed:
################################################################################
diff --git a/openmp/runtime/cmake/LibompExports.cmake b/openmp/runtime/cmake/LibompExports.cmake
index 805f128ebef2e..be7bc5f83d589 100644
--- a/openmp/runtime/cmake/LibompExports.cmake
+++ b/openmp/runtime/cmake/LibompExports.cmake
@@ -61,7 +61,7 @@ add_custom_command(TARGET omp POST_BUILD
)
if(LIBOMP_OMPT_SUPPORT)
add_custom_command(TARGET omp POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy omp-tools.h ${LIBOMP_EXPORTS_CMN_DIR}
+ COMMAND ${CMAKE_COMMAND} -E copy "${LIBOMP_HEADERS_INTDIR}/omp-tools.h" ${LIBOMP_EXPORTS_CMN_DIR}
)
endif()
if(LIBOMP_FORTRAN_MODULES)
@@ -74,7 +74,7 @@ if(LIBOMP_FORTRAN_MODULES)
)
add_dependencies(omp libomp-mod)
add_custom_command(TARGET omp POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy omp_lib.h ${LIBOMP_EXPORTS_CMN_DIR}
+ COMMAND ${CMAKE_COMMAND} -E copy "${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}/omp_lib.h" ${LIBOMP_EXPORTS_CMN_DIR}
)
endif()
More information about the Openmp-commits
mailing list