-# Copyright (C) 2015-2021 CEA/DEN, EDF R&D
+# Copyright (C) 2015-2022 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Versioning
# ===========
-SALOME_SETUP_VERSION(9.8.0 DEVELOPMENT)
+SALOME_SETUP_VERSION(9.10.0)
MESSAGE(STATUS "Building ${PROJECT_NAME_UC} ${${PROJECT_NAME_UC}_VERSION} from \"${${PROJECT_NAME_UC}_GIT_SHA1}\"")
# Platform setup
IF ("${PYTHON_VERSION_MAJOR}" STREQUAL "3")
MESSAGE(STATUS "Using Python 3")
ENDIF()
+ IF ("${SWIG_VERSION}" VERSION_GREATER_EQUAL "4")
+ SET(MEDCOUPLING_SWIG4_COMPAT TRUE CACHE BOOL "SWIG 4 compatibility (experimental)")
+ ELSE()
+ SET(MEDCOUPLING_SWIG4_COMPAT FALSE)
+ ENDIF()
+ IF(MEDCOUPLING_SWIG4_COMPAT)
+ LIST(APPEND CMAKE_SWIG_FLAGS "-DMEDCOUPLING_SWIG4_COMPAT")
+ ENDIF()
ENDIF(MEDCOUPLING_ENABLE_PYTHON)
IF(MEDCOUPLING_BUILD_DOC)