diff --git a/cmake/common.cmake b/cmake/common.cmake index 4539cf29b9..39327c16fb 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -83,6 +83,9 @@ endmacro() macro(update_language_files TARGET_NAME) # Update the translation (.ts) files (if they exist) and generate the # language (.qm) files, which will later on be embedded in the project + # Note: we use ERROR_QUIET with lupdate because it does generate some + # "errors" for our .cpp.inl files even though everything is fine with + # them... set(LANGUAGES fr) set(INPUT_FILES) @@ -101,7 +104,8 @@ macro(update_language_files TARGET_NAME) -ts ${TS_FILE} -I ${CMAKE_SOURCE_DIR}/src/misc WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - OUTPUT_QUIET) + OUTPUT_QUIET + ERROR_QUIET) execute_process(COMMAND ${QT_BINARY_DIR}/lrelease ${PROJECT_SOURCE_DIR}/${TS_FILE} -qm ${QM_FILE} OUTPUT_QUIET)