X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcmake%2FPyCompile.cmake;h=899c857a0cacb76700001022a217f337c948e522;hb=aafd52f44167d5510be1ddcb974daa9dae486933;hp=dbb61e14fa4b3ca7eac6fc6008e81e2228987034;hpb=0708686f69259c345a3f8c2e8c8c825a0db396e9;p=lyx.git diff --git a/development/cmake/PyCompile.cmake b/development/cmake/PyCompile.cmake index dbb61e14fa..899c857a0c 100644 --- a/development/cmake/PyCompile.cmake +++ b/development/cmake/PyCompile.cmake @@ -13,7 +13,7 @@ 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} ${LYX_PYTHON_EXECUTABLE}) @@ -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)