diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-10 13:22:25 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-10 18:39:30 +0100 |
commit | 88e5e9e0399d58b67028ea3082d3b3f5f7429823 (patch) | |
tree | 8aa485d5ec0ffb8205dfcc9f62f3652641999ecf /sources | |
parent | 729a09a6d6016381d5ab065fe07f4330121fda55 (diff) |
Silence the example_gallery tool
Add a --quiet option and use that for quiet builds.
Task-number: PYSIDE-1490
Change-Id: I6b8a3fa159acb85dee5fbc064991a09a9fa6ceda
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
(cherry picked from commit 9f8fc934818c3ae7473fe6258056bc7c7bf9f718)
Diffstat (limited to 'sources')
-rw-r--r-- | sources/pyside6/doc/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt index cbec282ab..bfbfb2b8e 100644 --- a/sources/pyside6/doc/CMakeLists.txt +++ b/sources/pyside6/doc/CMakeLists.txt @@ -25,8 +25,12 @@ endif() # Generate example gallery message(STATUS "Generating example gallery") +set (EXAMPLE_TOOL_OPTIONS '') +if (QUIET_BUILD) + set (EXAMPLE_TOOL_OPTIONS '-q') +endif() set(EXAMPLE_TOOL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../tools/example_gallery/main.py") -execute_process(COMMAND ${PYTHON_EXECUTABLE} ${EXAMPLE_TOOL_DIR} +execute_process(COMMAND ${PYTHON_EXECUTABLE} ${EXAMPLE_TOOL_DIR} ${EXAMPLE_TOOL_OPTIONS} WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) set(SHIBOKEN_INTERSPHINX_FILE "${ROOT}/pyside6/shiboken6/objects.inv") |