From 4fb647b05bb5e168d1ac26ad1e45daef00e1385b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 3 Sep 2018 14:39:23 +0200 Subject: [PATCH] No more supported by cmake >= 3.9. Strange line where .i file is not used. --- src/HEXABLOCK_SWIG/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}) -- 2.39.2