summaryrefslogtreecommitdiff
path: root/devel/openmp/files/patch-libomptarget_src_CMakeLists.txt
blob: 95979285d791bb2fda969cd8314867992385dc3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Prevent consumers from picking up libomptarget.so from devel/llvm* ports

--- libomptarget/src/CMakeLists.txt.orig	2017-12-06 21:59:15 UTC
+++ libomptarget/src/CMakeLists.txt
@@ -27,5 +27,9 @@ target_link_libraries(omptarget
   ${CMAKE_DL_LIBS}
   "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports")
 
+if(NOT WIN32)
+  set_target_properties(omptarget PROPERTIES SOVERSION 0)
+endif()
+
 # Install libomptarget under the lib destination folder.
 install(TARGETS omptarget LIBRARY DESTINATION lib${OPENMP_LIBDIR_SUFFIX})