X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcmake%2FPyCompile.cmake;h=899c857a0cacb76700001022a217f337c948e522;hb=aafd52f44167d5510be1ddcb974daa9dae486933;hp=49a7c885a55da5543f4d7fae1a9cbe2da0d54082;hpb=ed50dbfe0f6aacabe4c706cffb19beb73dfc1a6f;p=lyx.git diff --git a/development/cmake/PyCompile.cmake b/development/cmake/PyCompile.cmake index 49a7c885a5..899c857a0c 100644 --- a/development/cmake/PyCompile.cmake +++ b/development/cmake/PyCompile.cmake @@ -9,14 +9,14 @@ # #include(../PyCompile) project(${_project}) -include(FindPythonInterp) +FIND_PROGRAM(LYX_PYTHON_EXECUTABLE python) file(GLOB _py_files ${TOP_SRC_DIR}/lib/${_project}/*.py) -set(py_compile ${TOP_SRC_DIR}/config/py-compile) +set(py_compile sh ${TOP_SRC_DIR}/config/py-compile) set(_generated) -set(ENV{PYTHON} ${PYTHON_EXECUTABLE}) +set(ENV{PYTHON} ${LYX_PYTHON_EXECUTABLE}) foreach(_orig_py ${_py_files}) get_filename_component(_base_we_py ${_orig_py} NAME_WE) @@ -36,8 +36,8 @@ foreach(_orig_py ${_py_files}) COMMAND ${py_compile} ${_copied_py} DEPENDS ${_copied_py} ) - SET_SOURCE_FILES_PROPERTIES(${_copied_py} ${_created_py_} GENERATED) - install(FILES ${_compiled_py_} DESTINATION ${_project}) + SET_SOURCE_FILES_PROPERTIES(${_copied_py} GENERATED) + install(PROGRAMS ${_compiled_py_} ${_copied_py} DESTINATION ${_project}) LIST(APPEND _generated ${_compiled_py_}) endforeach(_orig_py)