]> SALOME platform Git repositories - modules/homard.git/commitdiff
Salome HOME
Remove CMake warning (usage of deprecated macro)
authorvsr <vsr@opencascade.com>
Mon, 20 Apr 2020 11:05:07 +0000 (14:05 +0300)
committervsr <vsr@opencascade.com>
Mon, 20 Apr 2020 11:05:07 +0000 (14:05 +0300)
src/FrontTrack_SWIG/CMakeLists.txt

index d42c2b45ad4a0dcc227bf692f6d5a0ae3caec10e..bf1e50fc63a9beed53278eab0a6140233ebab92c 100644 (file)
@@ -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)