diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 8d1a62ddc9..a73f07c9b6 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -40,6 +40,7 @@ import sys import re import io import glob +import fnmatch from condition_simplifier import simplify_condition from condition_simplifier_cache import set_condition_simplified_cache_enabled @@ -4092,6 +4093,10 @@ def should_convert_project(project_file_path: str = "", ignore_skip_marker: bool if project_relative_path.startswith("tests/auto/tools/qmake/testdata"): return False + # Skip doc snippets. + if fnmatch.fnmatch(project_relative_path, "src/*/doc/snippets/*"): + return False + # Skip certain config tests. config_tests = [ # Relative to qtbase/config.tests