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)