]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
No more supported by cmake >= 3.9. Strange line where .i file is not used.
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 3 Sep 2018 12:39:23 +0000 (14:39 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 3 Sep 2018 12:39:23 +0000 (14:39 +0200)
src/HEXABLOCK_SWIG/CMakeLists.txt

index 2c63cbf88200d14b11697bf5f7610bc8e0692184..7de0e2ce5e3971307048755d2e2d5dc1024bf9d7 100644 (file)
@@ -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})