mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Cmake build: Map '\origin unavailable' to appropriate value on install
For example for lib/doc.de/xyzzy.lyx the entry is changed to \origin /systemlyxdir/doc/de/
This commit is contained in:
parent
3ed174cc03
commit
afaf28964a
@ -30,7 +30,11 @@ foreach(_rel_doc ${_rel_lyx_docs})
|
|||||||
SET_SOURCE_FILES_PROPERTIES(${_created_doc} GENERATED)
|
SET_SOURCE_FILES_PROPERTIES(${_created_doc} GENERATED)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${_created_doc}"
|
OUTPUT "${_created_doc}"
|
||||||
COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_CMAKE_PATH}/doc/ReplaceValues.py" "LYX_USERDIR_VER=${LYX_USERDIR_VER}" "LYX_DIR_VER=${LYX_DIR_VER}" "${TOP_SRC_DIR}/lib/doc/${_rel_doc}" > "${_created_doc}"
|
COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_CMAKE_PATH}/doc/ReplaceValues.py"
|
||||||
|
"LYX_USERDIR_VER=${LYX_USERDIR_VER}"
|
||||||
|
"LYX_DIR_VER=${LYX_DIR_VER}"
|
||||||
|
"\\origin\ unavailable=\\origin\ /systemlyxdir/doc/${_rel_dir_part}"
|
||||||
|
"${TOP_SRC_DIR}/lib/doc/${_rel_doc}" > "${_created_doc}"
|
||||||
DEPENDS "${TOP_SRC_DIR}/lib/doc/${_rel_doc}" "${TOP_CMAKE_PATH}/doc/ReplaceValues.py"
|
DEPENDS "${TOP_SRC_DIR}/lib/doc/${_rel_doc}" "${TOP_CMAKE_PATH}/doc/ReplaceValues.py"
|
||||||
)
|
)
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${_rel_doc}" DESTINATION "${LYX_DATA_SUBDIR}doc/${_rel_dir_part}")
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${_rel_doc}" DESTINATION "${LYX_DATA_SUBDIR}doc/${_rel_dir_part}")
|
||||||
|
Loading…
Reference in New Issue
Block a user