From 85170ad9626261d7b69128996fda47834519e44d Mon Sep 17 00:00:00 2001 From: spo Date: Thu, 26 May 2016 18:09:39 +0400 Subject: [PATCH] Remove SWIG_SCRIPTS --- src/ModelHighAPI/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ModelHighAPI/CMakeLists.txt b/src/ModelHighAPI/CMakeLists.txt index fd5ab5be0..404e8f8a2 100644 --- a/src/ModelHighAPI/CMakeLists.txt +++ b/src/ModelHighAPI/CMakeLists.txt @@ -41,10 +41,6 @@ INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/ModelAPI ) -SET(SWIG_SCRIPTS - ${CMAKE_CURRENT_BINARY_DIR}/ModelHighAPI.py -) - SWIG_ADD_MODULE(ModelHighAPI python ModelHighAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ModelHighAPI ${SWIG_LINK_LIBRARIES}) @@ -54,7 +50,7 @@ ENDIF(WIN32) INSTALL(TARGETS _ModelHighAPI DESTINATION ${SHAPER_INSTALL_SWIG}) INSTALL(TARGETS ModelHighAPI DESTINATION ${SHAPER_INSTALL_BIN}) -INSTALL(FILES ${SWIG_SCRIPTS} DESTINATION ${SHAPER_INSTALL_SWIG}) +INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ModelHighAPI.py DESTINATION ${SHAPER_INSTALL_SWIG}) # Tests -- 2.39.2