From 2bd61379c0381fa2b04e035c8472ca87c32ff213 Mon Sep 17 00:00:00 2001 From: Rafal Date: Wed, 16 Oct 2024 20:34:39 +0200 Subject: [PATCH] add new patch --- mingw-w64-scotch/0005-name-suffix.patch | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mingw-w64-scotch/0005-name-suffix.patch diff --git a/mingw-w64-scotch/0005-name-suffix.patch b/mingw-w64-scotch/0005-name-suffix.patch new file mode 100644 index 0000000000000..5df0679e37bbc --- /dev/null +++ b/mingw-w64-scotch/0005-name-suffix.patch @@ -0,0 +1,38 @@ +diff -urN scotch-v7.0.5_orig/src/esmumps/CMakeLists.txt scotch-v7.0.5/src/esmumps/CMakeLists.txt +--- scotch-v7.0.5_orig/src/esmumps/CMakeLists.txt 2024-08-13 11:00:50.000000000 +0200 ++++ scotch-v7.0.5/src/esmumps/CMakeLists.txt 2024-10-16 20:20:58.763952500 +0200 +@@ -130,6 +130,7 @@ + NAMESPACE SCOTCH:: + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/scotch) + ++set_target_properties(esmumps PROPERTIES OUTPUT_NAME esmumps${NAME_SUFFIX}) + install(TARGETS esmumps + COMPONENT libscotch + EXPORT esmumpsTargets +@@ -164,6 +165,7 @@ + NAMESPACE SCOTCH:: + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/scotch) + ++set_target_properties(ptesmumps PROPERTIES OUTPUT_NAME ptesmumps${NAME_SUFFIX}) + install(TARGETS ptesmumps + COMPONENT libptscotch + EXPORT ptesmumpsTargets +diff -urN scotch-v7.0.5_orig/src/libscotch/CMakeLists.txt scotch-v7.0.5/src/libscotch/CMakeLists.txt +--- scotch-v7.0.5_orig/src/libscotch/CMakeLists.txt 2024-08-13 11:00:50.000000000 +0200 ++++ scotch-v7.0.5/src/libscotch/CMakeLists.txt 2024-10-16 20:22:07.519574200 +0200 +@@ -822,6 +822,7 @@ + set(TARGETS_LIST "scotch;scotcherr;scotcherrexit") + + foreach(_target ${TARGETS_LIST}) ++ set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${_target}${NAME_SUFFIX}) + install(EXPORT ${_target}Targets + COMPONENT libscotch + FILE ${_target}Targets.cmake +@@ -836,6 +837,7 @@ + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + + if (BUILD_PTSCOTCH) ++ set_target_properties(pt${_target} PROPERTIES OUTPUT_NAME pt${_target}${NAME_SUFFIX}) + install(EXPORT pt${_target}Targets + COMPONENT libptscotch + FILE pt${_target}Targets.cmake