From c449cb73f702f053aa3a6b123e4e1d737b3138e1 Mon Sep 17 00:00:00 2001 From: abn Date: Fri, 21 Oct 2022 10:15:28 +0200 Subject: [PATCH] Cygwin portability --- src/MEDCoupling_Swig/CMakeLists.txt | 4 ++-- src/PyWrapping/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2