mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Cmake build:
Modifications needed to work also if the path to build-dir contains spaces. (Tested on linux)
This commit is contained in:
parent
ea537bb0c9
commit
2626821ee2
@ -231,7 +231,7 @@ macro(lyx_qt_resources_file _qrc_name _to_dir _list)
|
||||
endif()
|
||||
add_custom_command(
|
||||
OUTPUT ${_qrc_name}
|
||||
COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target rebuild_cache
|
||||
COMMAND ${CMAKE_COMMAND} --build "${CMAKE_BINARY_DIR}" --target rebuild_cache
|
||||
)
|
||||
|
||||
endmacro(lyx_qt_resources_file)
|
||||
|
@ -120,7 +120,12 @@ ADD_CUSTOM_COMMAND(
|
||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
||||
COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE}
|
||||
ARGS --default-domain=${_lyxname} --directory=${TOP_SRC_DIR} --add-comments=TRANSLATORS: --language=C++ --join-existing --keyword=_ --keyword=N_ --keyword=B_ --keyword=qt_ --files-from="${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in" --copyright-holder="LyX Developers" --msgid-bugs-address=lyx-devel@lists.lyx.org -o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
||||
--default-domain=${_lyxname} --directory=${TOP_SRC_DIR}
|
||||
--add-comments=TRANSLATORS:
|
||||
--language=C++ --join-existing --keyword=_ --keyword=N_ --keyword=B_ --keyword=qt_
|
||||
--files-from=${CMAKE_CURRENT_BINARY_DIR}/POTFILES.in
|
||||
--copyright-holder="LyX Developers" --msgid-bugs-address=lyx-devel@lists.lyx.org
|
||||
-o "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot"
|
||||
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.fmt.pot" ${_potfiles_dep}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user