summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-20 01:15:27 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-20 01:17:09 +0200
commitc43a7ed46ce5fb88235c954dc210dd02a5e6e377 (patch)
treebe13c973cfc10f8bfac1f1f61f7b98654d25031c /CMake
parent99fd3fd5943883d947f2f6cd6a7fd9faf0dcc0bf (diff)
CMake: Translations: Build byproduct before output
This can lead to an inconsistent state otherwise, with the output being updated and the byproduct not; for example, when the build was manually interrupted.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/Translations.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMake/Translations.cmake b/CMake/Translations.cmake
index c2d3901fd..3562172bd 100644
--- a/CMake/Translations.cmake
+++ b/CMake/Translations.cmake
@@ -72,14 +72,14 @@ function(apt_add_translation_domain)
# of .mo files.
add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot-tmp
- COMMAND msgcomm --more-than=0 --sort-by-file
- ${sh_pot}
- ${CMAKE_CURRENT_BINARY_DIR}/${domain}.c.pot
- --output=${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot
COMMAND msgcomm --more-than=0 --omit-header --sort-by-file --add-location=file
${sh_pot}
${CMAKE_CURRENT_BINARY_DIR}/${domain}.c.pot
--output=${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot-tmp0
+ COMMAND msgcomm --more-than=0 --sort-by-file
+ ${sh_pot}
+ ${CMAKE_CURRENT_BINARY_DIR}/${domain}.c.pot
+ --output=${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot
COMMAND cmake -E copy_if_different
${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot-tmp0
${CMAKE_CURRENT_BINARY_DIR}/${domain}.pot-tmp