aboutsummaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-27 14:57:02 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-29 20:40:04 +0000
commit4d25dc4b4711eef3a12a23fb43f5d8ff91902e0b (patch)
tree0d44feb3256f92c7c30b81023a279a1983dc1f57 /sources
parentd7d78d45a3a322cb45c0b0f8f1b754f4bda8407a (diff)
snippets_translate: Enable all modules
Fix a fixme commment. To make this pass, make the conditions matches more strict and add some warnings and error handling. Remove the checking of stderr from the CMake statement as this will produce some warnings. Task-number: PYSIDE-1721 Change-Id: I8aeefa8355144d98524a622733d82d337cd3c23b Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit 9b887937f971887a32aefd584cc247bc7ec0f36e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'sources')
-rw-r--r--sources/pyside6/doc/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt
index a7639b8e6..37c895cad 100644
--- a/sources/pyside6/doc/CMakeLists.txt
+++ b/sources/pyside6/doc/CMakeLists.txt
@@ -102,10 +102,8 @@ if (FULLDOCSBUILD)
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SNIPPETS_TOOL}
--qt ${QT_SRC_DIR}/.. --pyside ${PYSIDE_ROOT} -w
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
- ERROR_VARIABLE SNIPPETS_ERROR
RESULT_VARIABLE SNIPPETS_RESULT)
- # SNIPPETS_ERROR might be empty and SNIPPET_RESULT might contain "permission denied"
- if (SNIPPETS_ERROR OR SNIPPETS_RESULT)
+ if (SNIPPETS_RESULT)
message(FATAL_ERROR
"The 'snippets_translate' tool failed: ${SNIPPETS_ERROR} ${SNIPPET_RESULT}")
endif()