diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-05-06 07:54:37 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-05-07 14:23:22 +0200 |
commit | 864e1e10c4cc0f3171ff7c1c53a911b0cfac25db (patch) | |
tree | 8c272e72dbe10f518f38dfcd90a9c839763af435 /src/corelib/Qt6CoreMacros.cmake | |
parent | 0acab3c1ade23ac7b8dd16f87c2578a8cff0c505 (diff) |
CMake: Do not generate RC files for STATIC and OBJECT libraries
Those library types typically do not have Windows resources with
version information.
Change-Id: I1a385c2ae4e40d5c153ac6501c5ed826eaf75655
Reviewed-by: Simon Hausmann <hausmann@gmail.com>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/Qt6CoreMacros.cmake')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index d3e13fffa9..38da1a9f94 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -819,9 +819,9 @@ endif() # an existing rc file. # function(qt6_generate_win32_rc_file target) - + set(prohibited_target_types INTERFACE_LIBRARY STATIC_LIBRARY OBJECT_LIBRARY) get_target_property(target_type ${target} TYPE) - if (target_type STREQUAL "INTERFACE_LIBRARY") + if(target_type IN_LIST prohibited_target_types) return() endif() |