aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/UseGettext.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/UseGettext.cmake b/cmake/UseGettext.cmake
index 3abf418e..17734a26 100644
--- a/cmake/UseGettext.cmake
+++ b/cmake/UseGettext.cmake
@@ -16,7 +16,7 @@ function(gettext_compile project_name)
set(target_file ${CMAKE_BINARY_DIR}/locale/${lang}/LC_MESSAGES/${project_name}.mo)
_gettext_mkdir_for_file(${target_file})
list(APPEND target_files ${target_file})
- add_custom_command(OUTPUT ${target_file} COMMAND ${MSGFMT_EXECUTABLE} -o ${target_file} ${source_file} DEPENDS ${source_file})
+ add_custom_command(OUTPUT ${target_file} COMMAND ${MSGFMT_EXECUTABLE} --check-format -o ${target_file} ${source_file} DEPENDS ${source_file})
install(FILES ${target_file} DESTINATION ${LOCALE_INSTALL_DIR}/${lang}/LC_MESSAGES)
endforeach(lang)
if(ARGS_MO_FILES_NAME)
@@ -25,4 +25,4 @@ function(gettext_compile project_name)
if(ARGS_TARGET_NAME)
add_custom_target(${ARGS_TARGET_NAME} DEPENDS ${target_files})
endif(ARGS_TARGET_NAME)
-endfunction(gettext_compile) \ No newline at end of file
+endfunction(gettext_compile)