aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/salome-medcoupling/win.patch
blob: 25c1104c3f714b1aec94d55e518402c8c8822bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)