Debian Codegraph @

tests/auto/cmake/linguist/test_translation_api/post_build_check.cmake

raw
1 # Copyright (C) 2025 The Qt Company Ltd.
2 # SPDX-License-Identifier: BSD-3-Clause
3
4 # Simply check, whether the lupdate calls are reporting errors.
5 execute_process(
6 COMMAND "${CMAKE_COMMAND}" --build . --target update_translations
7 COMMAND_ECHO STDOUT
8 RESULT_VARIABLE process_result
9 )
10 if(NOT process_result EQUAL "0")
11 message(FATAL_ERROR "Command error: ${process_result}")
12 endif()