diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-27 18:08:01 +0200 |
---|---|---|
committer | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-04-28 15:08:05 +0200 |
commit | 41610cbd977530731111c6bad2366127a2fcfd9c (patch) | |
tree | 30f68168d85608ca128b2cfe90d2d4ffc2a04f2d /sources/pyside6/doc | |
parent | 6bb7b383701d25f3c7346a785d3cb2e916261ba3 (diff) |
doc: snippets_translate make quiet mode by default
Without being 'quiet' the script was generating output
to the stdout and stderr, which was triggering the cmake
instruction to make the build fail
This change makes the quiet mode by default, the old output
that summarize each snippet file can be obtained by using
the '--verbose' option.
A new option called '--debug' was introduced to get even
more output related to each translation happening per file.
Pick-to: 6.0.4
Change-Id: I7fce09f0b60e626c957efc4fe24948e0eaf3db74
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc')
-rw-r--r-- | sources/pyside6/doc/CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt index e822992b1..c31765ad6 100644 --- a/sources/pyside6/doc/CMakeLists.txt +++ b/sources/pyside6/doc/CMakeLists.txt @@ -30,14 +30,11 @@ if (FULLDOCSBUILD) message(FATAL_ERROR "There is no value set on QT_SRC_DIR, the snippet conversion will fail") endif() set(PYSIDE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../../") - if (QUIET_BUILD) - set(SNIPPETS_QUIET_OPTION "-q") - endif() set(SNIPPETS_TOOL "${CMAKE_CURRENT_SOURCE_DIR}/../../../tools/snippets_translate/main.py") # Note QT_SRC_DIR points to 'qtbase', # so we use the general SRC directory to copy all the other snippets execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SNIPPETS_TOOL} - --qt ${QT_SRC_DIR}/.. --pyside ${PYSIDE_ROOT} -w ${SNIPPETS_QUIET_OPTION} + --qt ${QT_SRC_DIR}/.. --pyside ${PYSIDE_ROOT} -w WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} ERROR_VARIABLE SNIPPETS_ERROR) if (SNIPPETS_ERROR) |