aboutsummaryrefslogtreecommitdiff
path: root/ports/qttools/fix_static_build.patch
blob: bc67faf5dc9dc10497ba364dcc3d9a9a5ba92848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/src/designer/src/components/lib/CMakeLists.txt b/src/designer/src/components/lib/CMakeLists.txt
index 53358741f..ce070bd6a 100644
--- a/src/designer/src/components/lib/CMakeLists.txt
+++ b/src/designer/src/components/lib/CMakeLists.txt
@@ -878,7 +878,7 @@ qt_internal_add_resource(DesignerComponents "widgetbox"
 ## Scopes:
 #####################################################################
 
-qt_internal_extend_target(DesignerComponents CONDITION static
+qt_internal_extend_target(DesignerComponents CONDITION NOT BUILD_SHARED_LIBS
     DEFINES
         QT_DESIGNER_STATIC
 )
diff --git a/src/designer/src/designer/CMakeLists.txt b/src/designer/src/designer/CMakeLists.txt
index f786f1dd6..8c635ff14 100644
--- a/src/designer/src/designer/CMakeLists.txt
+++ b/src/designer/src/designer/CMakeLists.txt
@@ -103,8 +103,8 @@ qt_internal_extend_target(designer CONDITION TARGET Qt::PrintSupport
     PUBLIC_LIBRARIES
         Qt::PrintSupport
 )
 
-qt_internal_extend_target(designer CONDITION QT_CONFIG___contains___static
+qt_internal_extend_target(designer CONDITION NOT BUILD_SHARED_LIBS
     DEFINES
         QT_DESIGNER_STATIC
 )