From: michael Date: Thu, 21 Jan 2021 13:13:46 +0000 (+0100) Subject: Corrected error in yesterday commit X-Git-Tag: V9_7_0~62 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=64f09f746fde88fd20fc094258ca289a2183713a;p=tools%2Fsolverlab.git Corrected error in yesterday commit --- diff --git a/CDMATH/swig/CMakeLists.txt b/CDMATH/swig/CMakeLists.txt index 174ad7b..924fe3d 100755 --- a/CDMATH/swig/CMakeLists.txt +++ b/CDMATH/swig/CMakeLists.txt @@ -35,9 +35,9 @@ IF (${CMAKE_VERSION} VERSION_GREATER "3.13.0") ENDIF(${CMAKE_VERSION} VERSION_GREATER "3.13.0") IF (${CMAKE_VERSION} VERSION_LESS "3.8.0") - SWIG_ADD_LIBRARY(cdmath TYPE SHARED LANGUAGE python SOURCES ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) -ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_ADD_MODULE(cdmath python ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) +ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") + SWIG_ADD_LIBRARY(cdmath TYPE SHARED LANGUAGE python SOURCES ${CMAKE_CURRENT_BINARY_DIR}/cdmath.i) ENDIF(${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_LINK_LIBRARIES(cdmath ${Python_LIBRARIES} base mesh ${medloader} ${medcoupling} ${_extra_lib_SWIG}) diff --git a/CoreFlows/swig/CMakeLists.txt b/CoreFlows/swig/CMakeLists.txt index d97f849..9302eca 100755 --- a/CoreFlows/swig/CMakeLists.txt +++ b/CoreFlows/swig/CMakeLists.txt @@ -14,9 +14,9 @@ INCLUDE_DIRECTORIES( SET(_extra_lib_SWIG ${CDMATH_LIBRARIES} ${PETSC_LIBRARIES} ${SLEPC_LIBRARIES}) IF (${CMAKE_VERSION} VERSION_LESS "3.8.0") - SWIG_ADD_LIBRARY(CoreFlows TYPE SHARED LANGUAGE python SOURCES CoreFlows.i) -ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_ADD_MODULE(CoreFlows python CoreFlows.i) +ELSE (${CMAKE_VERSION} VERSION_LESS "3.8.0") + SWIG_ADD_LIBRARY(CoreFlows TYPE SHARED LANGUAGE python SOURCES CoreFlows.i) ENDIF(${CMAKE_VERSION} VERSION_LESS "3.8.0") SWIG_LINK_LIBRARIES(CoreFlows ${Python_LIBRARIES} ${_extra_lib_SWIG} CoreFlowsLibs ${PETSC_LIBRARIES} ${SLEPC_LIBRARIES})