From be99a4f07bee4bd824aa1b072e8b9ba856166e70 Mon Sep 17 00:00:00 2001 From: abn Date: Mon, 18 May 2015 16:55:04 +0200 Subject: [PATCH] 0022778: [CEA 1298] Python file compilation should be done at build time, not install time - Getting rid of deprecated INSTALL_AND_COMPILE... macro --- src/Macro/CMakeLists.txt | 2 +- src/PV_SWIG/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2