aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-10 13:22:25 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-10 14:18:00 +0100
commit9f8fc934818c3ae7473fe6258056bc7c7bf9f718 (patch)
treea95e9e77c9d5b1b98152a6dda8d70d6ce19f7e5f /sources/pyside6
parent609bd8121b9a45846b236ecf51226da026651d51 (diff)
Silence the example_gallery tool
Add a --quiet option and use that for quiet builds. Pick-to: 6.0 Task-number: PYSIDE-1490 Change-Id: I6b8a3fa159acb85dee5fbc064991a09a9fa6ceda Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/doc/CMakeLists.txt6
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")