2023-10-12 19:46:42 +02:00
|
|
|
openmp/runtime/src/CMakeLists.txt | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
2023-04-03 12:03:32 +08:00
|
|
|
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
|
2023-10-12 19:46:42 +02:00
|
|
|
index bb5822264514..340cef14df89 100644
|
2023-04-03 12:03:32 +08:00
|
|
|
--- a/openmp/runtime/src/CMakeLists.txt
|
|
|
|
+++ b/openmp/runtime/src/CMakeLists.txt
|
2023-10-12 19:46:42 +02:00
|
|
|
@@ -215,7 +215,7 @@ endif()
|
2023-04-03 12:03:32 +08:00
|
|
|
set(LIBOMP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
|
|
|
|
|
|
|
|
# Add symbolic links to libomp
|
2023-10-12 19:46:42 +02:00
|
|
|
-if(NOT WIN32)
|
2023-04-03 12:03:32 +08:00
|
|
|
+if(0)
|
|
|
|
add_custom_command(TARGET omp POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
|
2023-10-12 19:46:42 +02:00
|
|
|
libgomp${LIBOMP_LIBRARY_SUFFIX}
|
|
|
|
@@ -367,6 +367,7 @@ if(WIN32)
|
|
|
|
install(TARGETS omp ${export_to_llvmexports} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
2023-04-03 12:03:32 +08:00
|
|
|
install(TARGETS ${LIBOMP_IMP_LIB_TARGET} ARCHIVE DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
|
|
|
# Create aliases (regular copies) of the library for backwards compatibility
|
2023-10-12 19:46:42 +02:00
|
|
|
+ if(0)
|
2023-04-03 12:03:32 +08:00
|
|
|
set(LIBOMP_ALIASES "libiomp5md")
|
|
|
|
foreach(alias IN LISTS LIBOMP_ALIASES)
|
2023-10-12 19:46:42 +02:00
|
|
|
install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_LIB_FILE}\"
|
|
|
|
@@ -375,6 +376,7 @@ if(WIN32)
|
2023-04-03 12:03:32 +08:00
|
|
|
install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_IMP_LIB_FILE}\"
|
2023-04-12 08:20:09 +02:00
|
|
|
\"${alias}${CMAKE_STATIC_LIBRARY_SUFFIX}\" WORKING_DIRECTORY \"${outdir}\")")
|
2023-04-03 12:03:32 +08:00
|
|
|
endforeach()
|
|
|
|
+ endif()
|
|
|
|
else()
|
|
|
|
|
2023-10-12 19:46:42 +02:00
|
|
|
install(TARGETS omp ${export_to_llvmexports} ${LIBOMP_INSTALL_KIND} DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|