From 7d5641841acf0010c14d16b251f7bec81e46cf8c Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 4 Apr 2017 14:54:32 +0300 Subject: [PATCH] Improve swig generation process on Windows platform. --- src/GEOM_SWIG_WITHIHM/CMakeLists.txt | 1 + src/XAO_Swig/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/GEOM_SWIG_WITHIHM/CMakeLists.txt b/src/GEOM_SWIG_WITHIHM/CMakeLists.txt index aac28d6d3..16901f0ad 100755 --- a/src/GEOM_SWIG_WITHIHM/CMakeLists.txt +++ b/src/GEOM_SWIG_WITHIHM/CMakeLists.txt @@ -76,6 +76,7 @@ SET(_swig_SCRIPTS SWIG_ADD_MODULE(libGEOM_Swig python libGEOM_Swig.i libGEOM_Swig.cxx) SWIG_LINK_LIBRARIES(libGEOM_Swig "${_link_LIBRARIES}") +SWIG_CHECK_GENERATION(libGEOM_Swig) IF(WIN32) SET_TARGET_PROPERTIES(_libGEOM_Swig PROPERTIES DEBUG_OUTPUT_NAME _libGEOM_Swig_d) ENDIF(WIN32) diff --git a/src/XAO_Swig/CMakeLists.txt b/src/XAO_Swig/CMakeLists.txt index fa47112e0..110c111aa 100644 --- a/src/XAO_Swig/CMakeLists.txt +++ b/src/XAO_Swig/CMakeLists.txt @@ -59,6 +59,7 @@ SET_SOURCE_FILES_PROPERTIES(xao.i PROPERTIES SWIG_DEFINITIONS "-shadow") SWIG_ADD_MODULE(xao python xao.i) SWIG_LINK_LIBRARIES(xao "${_link_LIBRARIES}") +SWIG_CHECK_GENERATION(xao) IF(WIN32) SET_TARGET_PROPERTIES(_xao PROPERTIES DEBUG_OUTPUT_NAME _xao_d) ENDIF(WIN32)