aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/salome-medcoupling/win.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/salome-medcoupling/win.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/salome-medcoupling/win.patch')
-rw-r--r--vcpkg/ports/salome-medcoupling/win.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/salome-medcoupling/win.patch b/vcpkg/ports/salome-medcoupling/win.patch
new file mode 100644
index 0000000..25c1104
--- /dev/null
+++ b/vcpkg/ports/salome-medcoupling/win.patch
@@ -0,0 +1,18 @@
+diff --git a/src/MEDPartitioner/CMakeLists.txt b/src/MEDPartitioner/CMakeLists.txt
+index e088a0ed4..048505267 100644
+--- a/src/MEDPartitioner/CMakeLists.txt
++++ b/src/MEDPartitioner/CMakeLists.txt
+@@ -114,8 +114,12 @@ SET(medpartitionercpp_LDFLAGS
+ interpkernel
+ medcouplingcpp
+ medloader
+- -lpthread
+ )
++
++if(NOT WIN32)
++ list(APPEND medpartitionercpp_LDFLAGS -lpthread)
++endif()
++
+ IF(MEDCOUPLING_PARTITIONER_PARMETIS)
+ SET(medpartitionercpp_HEADERS_HXX ${medpartitionercpp_HEADERS_HXX} MEDPARTITIONER_ParMetisGraph.hxx)
+ SET(medpartitionercpp_SOURCES ${medpartitionercpp_SOURCES} MEDPARTITIONER_ParMetisGraph.cxx MEDPARTITIONER_MetisGraph.cxx)