blob: a3792a534371fcf321dd51eb32d63f5087d22699 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- libmetis/CMakeLists.txt.orig 2016-04-12 14:52:48 UTC
+++ libmetis/CMakeLists.txt
@@ -5,6 +5,10 @@ file(GLOB metis_sources *.c)
file(GLOB libmetis_h *.h)
# Build libmetis.
add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
+# Patch borrowed from math/metis/files
+if(SHARED)
+ set_target_properties(metis PROPERTIES SOVERSION ${SHLIB_MAJOR})
+endif()
if(UNIX)
target_link_libraries(metis m)
endif()
|