From: Anthony Geay Date: Mon, 3 Sep 2018 12:39:23 +0000 (+0200) Subject: No more supported by cmake >= 3.9. Strange line where .i file is not used. X-Git-Tag: V9_1_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4fb647b05bb5e168d1ac26ad1e45daef00e1385b;p=modules%2Fhexablock.git No more supported by cmake >= 3.9. Strange line where .i file is not used. --- diff --git a/src/HEXABLOCK_SWIG/CMakeLists.txt b/src/HEXABLOCK_SWIG/CMakeLists.txt index 2c63cbf..7de0e2c 100644 --- a/src/HEXABLOCK_SWIG/CMakeLists.txt +++ b/src/HEXABLOCK_SWIG/CMakeLists.txt @@ -74,8 +74,9 @@ SET(_bin_SCRIPTS ADD_LIBRARY(hexablock_swig_lib ${_hexablock_swig_SOURCES}) TARGET_LINK_LIBRARIES(hexablock_swig_lib ${_link_LIBRARIES} ) -SWIG_ADD_MODULE(hexablock_swig python ${_hexablock_swig_SOURCES}) -SWIG_LINK_LIBRARIES(hexablock_swig ${_link_LIBRARIES} ${hexablock_swig_lib}) +add_library(_hexablock_swig MODULE ${_hexablock_swig_SOURCES}) +target_link_libraries(_hexablock_swig ${_link_LIBRARIES} ${hexablock_swig_lib}) # does nothing but reproduces previous SWIG_LINK_LIBRARIES line +set_target_properties(_hexablock_swig PROPERTIES PREFIX "") INSTALL(TARGETS _hexablock_swig DESTINATION ${SALOME_INSTALL_LIBS}) SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON})