From: abn Date: Mon, 18 May 2015 14:55:04 +0000 (+0200) Subject: 0022778: [CEA 1298] Python file compilation should be done at build time, not install... X-Git-Tag: V7_7_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=be99a4f07bee4bd824aa1b072e8b9ba856166e70;p=modules%2Fparavis.git 0022778: [CEA 1298] Python file compilation should be done at build time, not install time - Getting rid of deprecated INSTALL_AND_COMPILE... macro --- diff --git a/src/Macro/CMakeLists.txt b/src/Macro/CMakeLists.txt index 2ccf3cf8..25ace836 100644 --- a/src/Macro/CMakeLists.txt +++ b/src/Macro/CMakeLists.txt @@ -23,4 +23,4 @@ SET(_PYFILES_TO_INSTALL ShowSalomeObject.py ) -INSTALL_AND_COMPILE_PYTHON_FILE("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro) +SALOME_INSTALL_SCRIPTS("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro) diff --git a/src/PV_SWIG/CMakeLists.txt b/src/PV_SWIG/CMakeLists.txt index 769189a2..20e16ebf 100644 --- a/src/PV_SWIG/CMakeLists.txt +++ b/src/PV_SWIG/CMakeLists.txt @@ -35,4 +35,4 @@ ELSE(SALOME_LIGHT_ONLY) ) ENDIF(SALOME_LIGHT_ONLY) -INSTALL_AND_COMPILE_PYTHON_FILE("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_PYTHON}) +SALOME_INSTALL_SCRIPTS("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_PYTHON}) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 752eaa9e..de4d1720 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -37,7 +37,7 @@ SET(_demo_files demo_15_med.py ) -INSTALL_AND_COMPILE_PYTHON_FILE("${_demo_files}" ${SALOME_INSTALL_SCRIPT_PYTHON}) +SALOME_INSTALL_SCRIPTS("${_demo_files}" ${SALOME_INSTALL_SCRIPT_PYTHON}) # Application tests INSTALL(FILES CTestTestfileInstall.cmake