From 60ceb1b0c57c5f7edb33a3035cc48a830076d98b Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 20 Aug 2019 16:18:02 +0200 Subject: [PATCH] Handle contains(CONFIG, static) in pro2cmake Change-Id: I36717688dd3b2ff0f6730bf3d65be421e391895f Reviewed-by: Tobias Hunger Reviewed-by: Qt CMake Build Bot Reviewed-by: Leander Beernaert --- util/cmake/pro2cmake.py | 1 + 1 file changed, 1 insertion(+) diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py index 1d30cac4b69..0b03e2f6904 100755 --- a/util/cmake/pro2cmake.py +++ b/util/cmake/pro2cmake.py @@ -1014,6 +1014,7 @@ def map_condition(condition: str) -> str: condition) condition = re.sub(r'qtConfig\(opengl\.\*\)', r'QT_FEATURE_opengl', condition) condition = re.sub(r'^win\*$', r'win', condition) + condition = re.sub(r'contains\(CONFIG, static\)', r'NOT QT_BUILD_SHARED_LIBS', condition) def gcc_version_handler(match_obj: re.Match): operator = match_obj.group(1)