ports/math/parmetis/files/patch-CMakeLists.txt
Thierry Thomas bb5d336a9d math/parmetis: switch to PETSc fork
Upstream disapeared, and 2 forks are available, KarypisLab on GitHub and
the PETSc one. ATM PETSc seems more active.

Don’t install one more libmetis but depend on the regular one, and thus
don’t install the libraries under $PREFIX/lib/parmetis.

Note: manual.pdf is no more available.
2025-04-20 15:03:36 +02:00

22 lines
707 B
Text

--- CMakeLists.txt.orig 2025-03-31 19:32:32 UTC
+++ CMakeLists.txt
@@ -21,9 +21,11 @@ if(SHARED)
# Prepare libraries.
if(SHARED)
set(ParMETIS_LIBRARY_TYPE SHARED)
+ set(METIS_LIBRARY_TYPE SHARED)
set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
else()
set(ParMETIS_LIBRARY_TYPE STATIC)
+ set(METIS_LIBRARY_TYPE STATIC)
endif()
# List of paths that the compiler will search for header files.
@@ -36,6 +38,7 @@ include_directories(${CMAKE_INSTALL_PREFIX}/include)
# List of paths that the compiler will search for library files.
# i.e., the -L equivalent
+link_directories(${MPI_LINK_FLAGS})
link_directories(${METIS_PATH}/lib)
link_directories(${CMAKE_INSTALL_PREFIX}/lib)