mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Prevent build of <lang>.gmo in case of error.
Given erroneous <lang>.po file, this yields to error on first call to make. Nonetheless a new <lang>.gmo file is created. The following calls to make do not get an error. This patch prevents the <lang>.gmo creation on error. Problem spotted by Scott.
This commit is contained in:
parent
592deaa423
commit
075d903941
@ -51,7 +51,8 @@ MACRO(GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFile)
|
|||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT ${_gmoFile}
|
OUTPUT ${_gmoFile}
|
||||||
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none ${_absFile} ${_absPotFile}
|
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none ${_absFile} ${_absPotFile}
|
||||||
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -c --statistics -o ${_gmoFile} ${_absFile}
|
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -c --statistics -o ${_gmoFile}.1 ${_absFile}
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E rename ${_gmoFile}.1 ${_gmoFile}
|
||||||
DEPENDS ${_absPotFile} ${_absFile}
|
DEPENDS ${_absPotFile} ${_absFile}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user