ports/math/metis/files/patch-libmetis__CMakeLists.txt
Brendan Fabeny 5930109e8e add math/metis4 to math/Makefile; update math/metis to 5.0.2; add appropriate
CONFLICTS, LATEST_LINK, and PORTSCOUT; adjust dependent ports; explicitly
note the restrictive license of the metis ports (while here, append the MPI port to
*DEPENDS in math/parmetis, rather than using an assignment)

PR:		169578
2012-07-09 11:11:44 +00:00

12 lines
416 B
Text

--- libmetis/CMakeLists.txt.orig 2011-06-22 13:47:13.000000000 -0400
+++ libmetis/CMakeLists.txt 2012-07-07 11:05:47.000000000 -0400
@@ -4,6 +4,9 @@
file(GLOB metis_sources *.c)
# Build libmetis.
add_library(metis ${METIS_LIBRARY_TYPE} ${GKlib_sources} ${metis_sources})
+if(SHARED)
+ set_target_properties(metis PROPERTIES SOVERSION ${SHLIB_MAJOR})
+endif()
if(UNIX)
target_link_libraries(metis m)
endif()