summaryrefslogtreecommitdiffstats
path: root/cmake/QtPriHelpers.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtPriHelpers.cmake')
-rw-r--r--cmake/QtPriHelpers.cmake7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmake/QtPriHelpers.cmake b/cmake/QtPriHelpers.cmake
index 166fae7713..b79f17243e 100644
--- a/cmake/QtPriHelpers.cmake
+++ b/cmake/QtPriHelpers.cmake
@@ -153,13 +153,9 @@ function(qt_generate_module_pri_file target)
endforeach()
set(module_internal_config v2)
- if(NOT QT_FEATURE_shared)
- list(APPEND module_internal_config staticlib)
- endif()
if(arg_INTERNAL_MODULE)
list(APPEND module_internal_config internal_module)
endif()
-
get_target_property(target_type ${target} TYPE)
if (NOT target_type STREQUAL "INTERFACE_LIBRARY")
get_target_property(is_fw ${target} FRAMEWORK)
@@ -167,6 +163,9 @@ function(qt_generate_module_pri_file target)
list(APPEND module_internal_config lib_bundle)
endif()
endif()
+ if(target_type STREQUAL "STATIC_LIBRARY")
+ list(APPEND module_internal_config staticlib)
+ endif()
# TODO: Add the value 'ltcg' to module_internal_config if LTCG is turned on.