summaryrefslogtreecommitdiffstats
path: root/util/cmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2020-02-26 13:08:10 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2020-03-05 07:48:01 +0100
commit20410cdc116c5015e5fe2ee3885d6466fba8827f (patch)
treeb5eb82d35d2bf5d0a0d6cf0843ddd94009062836 /util/cmake
parentbecbd07f5529c88bf460f51e8ec5475ec8575fb7 (diff)
CMake: Port the 'shared' feature
This feature is read-only and supposed to be set by BUILD_SHARED_LIBS. It mainly exists for the qmake support. Change-Id: I722b0de53211d0aab1924e45a77120c890f31f50 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake')
-rwxr-xr-xutil/cmake/configurejson2cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 8101697a55..135d26b9bf 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -756,7 +756,7 @@ def parseFeature(ctx, feature, data, cm_fh):
"sanitize_thread": None,
"sanitize_undefined": None,
"separate_debug_info": None,
- "shared": None,
+ "shared": {"condition": "BUILD_SHARED_LIBS"},
"silent": None,
"sql-sqlite": {"condition": "QT_FEATURE_datestring AND SQLite3_FOUND"},
"static": None,