summaryrefslogtreecommitdiffstats
path: root/configure.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 /configure.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 'configure.cmake')
-rw-r--r--configure.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 3cd0e8cf95..5426b8c107 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -312,6 +312,13 @@ qt_feature("android-style-assets" PRIVATE
LABEL "Android Style Assets"
CONDITION ANDROID
)
+qt_feature("shared" PUBLIC
+ LABEL "Building shared libraries"
+ AUTODETECT NOT APPLE_UIKIT
+ CONDITION BUILD_SHARED_LIBS
+)
+qt_feature_config("shared" QMAKE_PUBLIC_QT_CONFIG)
+qt_feature_config("shared" QMAKE_PUBLIC_CONFIG)
qt_feature("use_bfd_linker"
LABEL "bfd"
AUTODETECT false