From: abn Date: Fri, 21 Oct 2022 08:15:28 +0000 (+0200) Subject: Cygwin portability X-Git-Tag: V9_10_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f259ec4c2d78bcb8831a7498c07b80468e9dd5fc;p=tools%2Fmedcoupling.git Cygwin portability --- diff --git a/src/MEDCoupling_Swig/CMakeLists.txt b/src/MEDCoupling_Swig/CMakeLists.txt index 738a087ec..125dda076 100644 --- a/src/MEDCoupling_Swig/CMakeLists.txt +++ b/src/MEDCoupling_Swig/CMakeLists.txt @@ -121,7 +121,7 @@ ELSE() SWIG_ADD_LIBRARY(${MEDCouling_target_name} LANGUAGE python SOURCES MEDCoupling.i) ENDIF() -IF(WIN32) +IF(WIN32 OR CYGWIN) SWIG_LINK_LIBRARIES(${MEDCouling_target_name} ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} medcouplingcpp) ELSE(WIN32) # ${PYTHON_LIBRARIES} not needed see https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1 @@ -155,7 +155,7 @@ ELSE() SWIG_ADD_LIBRARY(MEDCouplingRemapper LANGUAGE python SOURCES MEDCouplingRemapper.i) ENDIF() -IF(WIN32) +IF(WIN32 OR CYGWIN) SWIG_LINK_LIBRARIES(MEDCouplingRemapper ${PYTHON_LIBRARIES} medcouplingremapper) ELSE(WIN32) # ${PYTHON_LIBRARIES} not needed see https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1 diff --git a/src/PyWrapping/CMakeLists.txt b/src/PyWrapping/CMakeLists.txt index 1b7be0a88..5bf9f8181 100644 --- a/src/PyWrapping/CMakeLists.txt +++ b/src/PyWrapping/CMakeLists.txt @@ -66,7 +66,7 @@ INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR}/doc ) -IF(WIN32) +IF(WIN32 OR CYGWIN) SET(medcoupling_LIB_dependancies ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} medcouplingremapper medicoco) ELSE(WIN32) # ${PYTHON_LIBRARIES} not needed see https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1