CMake: pro2cmake: Fix opengles condition substitution
Missing parenthesis caused wrong condiiton simplification in scopes. Change-Id: Ia2a1a97f4da36b185631a2a3c7855ae01595b0f7 Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
37714de9a6
commit
f46c11989a
@ -1432,7 +1432,7 @@ def map_condition(condition: str) -> str:
|
||||
)
|
||||
condition = re.sub(
|
||||
r"qtConfig\(opengl\(es1\|es2\)\?\)",
|
||||
r"QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3",
|
||||
r"(QT_FEATURE_opengl OR QT_FEATURE_opengles2 OR QT_FEATURE_opengles3)",
|
||||
condition,
|
||||
)
|
||||
condition = re.sub(r"qtConfig\(opengl\.\*\)", r"QT_FEATURE_opengl", condition)
|
||||
|
Loading…
x
Reference in New Issue
Block a user