mirror of https://github.com/sipwise/sems.git
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1910 8eb893ce-cfd4-0310-b710-fb5ebe64c474sayer/1.4-spce2.6
parent
3f4b1724cf
commit
f12b2c145b
@ -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})
|
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 -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}')")
|
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})
|
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})
|
ENDFOREACH(python_file ${python_files})
|
||||||
ENDFUNCTION()
|
ENDMACRO(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
|
||||||
|
|||||||
Loading…
Reference in new issue