]> source.dussan.org Git - tigervnc.git/commitdiff
Validate translations during build
authorPierre Ossman <ossman@cendio.se>
Mon, 26 Apr 2021 07:36:46 +0000 (09:36 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 26 Apr 2021 07:36:46 +0000 (09:36 +0200)
Incorrect format strings can cause crashes, so we want to catch those
early.

po/CMakeLists.txt

index 2eb10e7b9ea98662a829735468dfb8df1c832faa..c84fb0e6bcc0b4b10c19857600783b0459f15fd6 100644 (file)
@@ -41,7 +41,7 @@ foreach(lang ${po_FILES})
 
   # Add command to build X.mo from X.po
   add_custom_command(OUTPUT ${mo}
-    COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo} ${po}
+    COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} --check -o ${mo} ${po}
     DEPENDS ${po}
   )