diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 8e5e8307830..589ac1d568d 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -978,10 +978,10 @@ def parseProFile(file: str, *, debug=False): def map_condition(condition: str) -> str: # Some hardcoded cases that are too bothersome to generalize. - condition = re.sub(r'^qtConfig\(opengl\(es1\|es2\)\?\)$', + condition = re.sub(r'qtConfig\(opengl\(es1\|es2\)\?\)', r'QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3', condition) - condition = re.sub(r'^qtConfig\(opengl\.\*\)$', r'QT_FEATURE_opengl', condition) + condition = re.sub(r'qtConfig\(opengl\.\*\)', r'QT_FEATURE_opengl', condition) condition = re.sub(r'^win\*$', r'win', condition) def gcc_version_handler(match_obj: re.Match):