[Openmp-commits] [PATCH] D47224: [cmake] Guard another instance where symlinks are being created
Azharuddin Mohammed via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 22 13:36:53 PDT 2018
azharudd created this revision.
azharudd added reviewers: jlpeyton, AndreyChurbanov, Hahnfeld.
Herald added subscribers: llvm-commits, mgorny.
Repository:
rL LLVM
https://reviews.llvm.org/D47224
Files:
runtime/src/CMakeLists.txt
Index: runtime/src/CMakeLists.txt
===================================================================
--- runtime/src/CMakeLists.txt
+++ runtime/src/CMakeLists.txt
@@ -162,14 +162,16 @@
endif()
# Add symbolic links to libomp
-if(NOT WIN32)
- add_custom_command(TARGET omp POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
- libgomp${LIBOMP_LIBRARY_SUFFIX}
- COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
- libiomp5${LIBOMP_LIBRARY_SUFFIX}
- WORKING_DIRECTORY ${LIBOMP_LIBRARY_DIR}
- )
+if(${LIBOMP_INSTALL_ALIASES})
+ if(NOT WIN32)
+ add_custom_command(TARGET omp POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
+ libgomp${LIBOMP_LIBRARY_SUFFIX}
+ COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
+ libiomp5${LIBOMP_LIBRARY_SUFFIX}
+ WORKING_DIRECTORY ${LIBOMP_LIBRARY_DIR}
+ )
+ endif()
endif()
# Linking command will include libraries in LIBOMP_CONFIGURED_LIBFLAGS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47224.148091.patch
Type: text/x-patch
Size: 1014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180522/dd4dc181/attachment.bin>
More information about the Openmp-commits
mailing list