[Openmp-commits] [PATCH] D24563: [openmp] [cmake] Make libgomp & libiomp5 alias install optional
Michał Górny via Openmp-commits
openmp-commits at lists.llvm.org
Wed Sep 14 10:55:04 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL281512: [cmake] Make libgomp & libiomp5 alias install optional (authored by mgorny).
Changed prior to commit:
https://reviews.llvm.org/D24563?vs=71365&id=71396#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24563
Files:
openmp/trunk/runtime/CMakeLists.txt
openmp/trunk/runtime/src/CMakeLists.txt
Index: openmp/trunk/runtime/src/CMakeLists.txt
===================================================================
--- openmp/trunk/runtime/src/CMakeLists.txt
+++ openmp/trunk/runtime/src/CMakeLists.txt
@@ -305,13 +305,15 @@
install(TARGETS omp ${LIBOMP_INSTALL_KIND} DESTINATION lib${LIBOMP_LIBDIR_SUFFIX})
- # Create aliases (symlinks) of the library for backwards compatibility
- set(LIBOMP_ALIASES "libgomp;libiomp5")
- foreach(alias IN LISTS LIBOMP_ALIASES)
- install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E create_symlink \"${LIBOMP_LIB_FILE}\"
- \"${alias}${LIBOMP_LIBRARY_SUFFIX}\" WORKING_DIRECTORY
- \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib${LIBOMP_LIBDIR_SUFFIX})")
- endforeach()
+ if(${LIBOMP_INSTALL_ALIASES})
+ # Create aliases (symlinks) of the library for backwards compatibility
+ set(LIBOMP_ALIASES "libgomp;libiomp5")
+ foreach(alias IN LISTS LIBOMP_ALIASES)
+ install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E create_symlink \"${LIBOMP_LIB_FILE}\"
+ \"${alias}${LIBOMP_LIBRARY_SUFFIX}\" WORKING_DIRECTORY
+ \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/lib${LIBOMP_LIBDIR_SUFFIX})")
+ endforeach()
+ endif()
endif()
install(
FILES
Index: openmp/trunk/runtime/CMakeLists.txt
===================================================================
--- openmp/trunk/runtime/CMakeLists.txt
+++ openmp/trunk/runtime/CMakeLists.txt
@@ -340,6 +340,10 @@
set(LIBOMP_LIB_FILE ${LIBOMP_LIB_NAME}${LIBOMP_LIBRARY_SUFFIX})
+# Optional backwards compatibility aliases.
+set(LIBOMP_INSTALL_ALIASES TRUE CACHE BOOL
+ "Install libgomp and libiomp5 library aliases for backwards compatibility")
+
# Print configuration after all variables are set.
if(${LIBOMP_STANDALONE_BUILD})
libomp_say("Operating System -- ${CMAKE_SYSTEM_NAME}")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24563.71396.patch
Type: text/x-patch
Size: 1834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160914/f92e3a24/attachment.bin>
More information about the Openmp-commits
mailing list