From: vsr Date: Mon, 20 Apr 2020 11:05:07 +0000 (+0300) Subject: Remove CMake warning (usage of deprecated macro) X-Git-Tag: V9_5_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07608e92fa4fe8788003886a385b0cbdab715d27;p=modules%2Fhomard.git Remove CMake warning (usage of deprecated macro) --- diff --git a/src/FrontTrack_SWIG/CMakeLists.txt b/src/FrontTrack_SWIG/CMakeLists.txt index d42c2b45..bf1e50fc 100644 --- a/src/FrontTrack_SWIG/CMakeLists.txt +++ b/src/FrontTrack_SWIG/CMakeLists.txt @@ -31,7 +31,12 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR}/../FrontTrack ) -SWIG_ADD_MODULE(FrontTrack python FrontTrack.i) +IF(${CMAKE_VERSION} VERSION_LESS "3.8.0") + SWIG_ADD_MODULE(FrontTrack python FrontTrack.i) +ELSE() + SWIG_ADD_LIBRARY(FrontTrack LANGUAGE python SOURCES FrontTrack.i) +ENDIF() + SWIG_LINK_LIBRARIES(FrontTrack ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} FrontTrack) IF(WIN32)