Add condition mapping for cross_compile to CMAKE_CROSS_COMPILING

Change-Id: I90220eda846299c14aca67ba59a2a9518bea2dee
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Leander Beernaert 2019-12-11 11:22:05 +01:00
parent 6c20ae774c
commit 19e79ca0a4

View File

@ -1525,6 +1525,8 @@ def map_condition(condition: str) -> str:
)
condition = re.sub(r"styles___contains___fusion", r"QT_FEATURE_style_fusion", condition)
condition = condition.replace("cross_compile", "CMAKE_CROSS_COMPILING")
cmake_condition = ""
for part in condition.split():
# some features contain e.g. linux, that should not be