summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-04-02 16:03:18 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-04-03 09:00:08 +0000
commit547c7f8ca5c13564460c4c47611c9681ad8b022b (patch)
treec0cf560fad0465d0c44dc9b8f456f1254335df9a /util/cmake/pro2cmake.py
parent9a7de16fac8d4f2bcbc635db4a83ac78380287fc (diff)
Fix architecture conditions
The actual variable that contains the architecture is TEST_architecture_arch. TEST_architecture only contains the value if the test was performed or not. Fix the conversion script and all the generated files. Change-Id: Icb3480832cab894948f4fef03b8bc8187cab6152 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 9173f84901..6e1f609514 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -1175,9 +1175,9 @@ def recursive_evaluate_scope(scope: Scope, parent_condition: str = '',
def map_to_cmake_condition(condition: str) -> str:
condition = re.sub(r'\bQT_ARCH___equals___([a-zA-Z_0-9]*)',
- r'(TEST_architecture STREQUAL "\1")', condition)
+ r'(TEST_architecture_arch STREQUAL "\1")', condition)
condition = re.sub(r'\bQT_ARCH___contains___([a-zA-Z_0-9]*)',
- r'(TEST_architecture STREQUAL "\1")', condition)
+ r'(TEST_architecture_arch STREQUAL "\1")', condition)
return condition