summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2019-10-07 08:38:08 +0200
committerJoerg Bornemann <[email protected]>2022-02-28 15:41:11 +0100
commit2389aaf8c754c78464f27cf480e22a41a89de1b0 (patch)
treefe330ef8f5778ada633bbae76ce1b13ced11fc91 /util/cmake/pro2cmake.py
parent6708fad936319eba56577ad76620a8a72f78ccdb (diff)
pro2cmake: Handle qmake condition operator precedence
Unfortunately qmake does not have operator precedence in conditions, and each sub-expression is simply evaluated left to right. So c1|c2:c3 is evaluated as (c1|c2):c3 and not c1|(c2:c3). To handle that in pro2cmake, wrap each condition sub-expression in parentheses. It's ugly, but there doesn't seem to be another way of handling it, because SymPy uses Python operator precedence for condition operators, and it's not possible to change the precendece. Fixes: QTBUG-78929 Change-Id: I6ab767c4243e3f2d0fea1c36cd004409faba3a53 Reviewed-by: Alexandru Croitor <[email protected]>
Diffstat (limited to 'util/cmake/pro2cmake.py')
0 files changed, 0 insertions, 0 deletions