vcpkg/ports/salome-medcoupling/win.patch
Alexander Neumann a109b7ccb2
[salome-medcoupling] Add new port (#32916)
* [salome-configuration|medcoupling] new ports

* format manifest

* v db

* remove trace

* v db

* fix dep

* v db

* Apply suggestions from code review

Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>

* v db

* adjust SALOME_WITH_MPI depending on HDF5

* remove nuking of CMAKE_PREFIX_PATH from salome

* v db

* fix post build

* v db

* Fix med-fichier config on linux

* add supports

* format manifest

* v db

* don't want to investigate linux failure further

---------

Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
2023-08-07 09:59:40 -07:00

19 lines
661 B
Diff

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)