]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
fix: CMake warnings about mismatch of if statement labels fix-doxygen-and-rst-documentation
authorGbkng <guillaume.brooking@gmail.com>
Mon, 15 Apr 2024 13:08:34 +0000 (15:08 +0200)
committerGbkng <guillaume.brooking@gmail.com>
Tue, 23 Apr 2024 07:48:25 +0000 (09:48 +0200)
src/MEDCoupling_Swig/CMakeLists.txt
src/PyWrapping/CMakeLists.txt

index 1a99b2aa44eeba23e2c33d7eadf19a83cde76275..446dc792c49a58c1b9d19c60db48646aa3031014 100644 (file)
@@ -123,10 +123,10 @@ ENDIF()
 
 IF(WIN32 OR CYGWIN)
   SWIG_LINK_LIBRARIES(${MEDCouling_target_name} ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} medcouplingcpp)
-ELSE(WIN32)
+ELSE()
   # ${PYTHON_LIBRARIES} not needed see https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1
   SWIG_LINK_LIBRARIES(${MEDCouling_target_name} ${PLATFORM_LIBS} medcouplingcpp)
-ENDIF(WIN32)
+ENDIF()
 # ${PYTHON_LIBRARIES} not needed
 SWIG_CHECK_GENERATION(${MEDCouling_target_name})
 SET_SOURCE_FILES_PROPERTIES(MEDCouplingRemapper.i PROPERTIES CPLUSPLUS ON)
@@ -157,10 +157,9 @@ ENDIF()
 
 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
+ELSE()
   SWIG_LINK_LIBRARIES(MEDCouplingRemapper medcouplingremapper)
-ENDIF(WIN32)
+ENDIF()
 
 IF(WIN32)
   SET_TARGET_PROPERTIES(_MEDCouplingRemapper PROPERTIES DEBUG_OUTPUT_NAME _MEDCouplingRemapper_d)
index 65710dcb6d152c521e84865aef09d40064f577e7..6a734055d59ab628b0a47e7ae9c002006cf24bb1 100644 (file)
@@ -68,10 +68,10 @@ INCLUDE_DIRECTORIES(
 
 IF(WIN32 OR CYGWIN)
   SET(medcoupling_LIB_dependancies ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} medcouplingremapper medicoco)
-ELSE(WIN32)
+ELSE()
   # ${PYTHON_LIBRARIES} not needed see https://www.python.org/dev/peps/pep-0513/#libpythonx-y-so-1
   SET(medcoupling_LIB_dependancies ${PLATFORM_LIBS} medcouplingremapper medicoco)
-ENDIF(WIN32)
+ENDIF()
   
 IF(NOT MEDCOUPLING_MICROMED)
   LIST(APPEND SWIG_MODULE_medcoupling_EXTRA_FLAGS -DWITH_MED_FILE)