From f12b2c145b2a670e60ecc99bf9c1612ab27b5c36 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 18 May 2010 17:31:11 +0000 Subject: [PATCH] More compatibility with older CMake (2.4). Signed-off-by: Peter Lemenkov git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1910 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- cmake/python.rules.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/python.rules.txt b/cmake/python.rules.txt index 54f78804..b7d37ade 100644 --- a/cmake/python.rules.txt +++ b/cmake/python.rules.txt @@ -1,7 +1,7 @@ -FUNCTION(PYTHON_SOURCES_COMPILE python_files sems_python_dir) +MACRO(PYTHON_SOURCES_COMPILE python_files sems_python_dir) FOREACH (python_file ${python_files}) EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')") EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')") INSTALL (FILES ${python_file} ${python_file}c ${python_file}o DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir}) ENDFOREACH(python_file ${python_files}) -ENDFUNCTION() +ENDMACRO(PYTHON_SOURCES_COMPILE python_files sems_python_dir)