]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Cygwin portability abn/cygwin V9_10_0b1
authorabn <adrien.bruneton@cea.fr>
Fri, 21 Oct 2022 08:15:28 +0000 (10:15 +0200)
committerabn <adrien.bruneton@cea.fr>
Fri, 21 Oct 2022 08:15:28 +0000 (10:15 +0200)
src/MEDCoupling_Swig/CMakeLists.txt
src/PyWrapping/CMakeLists.txt

index 738a087ec7879c39caf1a3e7279a5d3963c9c949..125dda076ed3ee61f812049677ad1805cad49821 100644 (file)
@@ -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
index 1b7be0a88c09ca17629d3a2fa69bda7a09328b50..5bf9f8181c7991d357afe35b5cc43657e768674b 100644 (file)
@@ -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