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>
This commit is contained in:
parent
0acab3c1ad
commit
864e1e10c4
@ -819,9 +819,9 @@ endif()
|
|||||||
# an existing rc file.
|
# an existing rc file.
|
||||||
#
|
#
|
||||||
function(qt6_generate_win32_rc_file target)
|
function(qt6_generate_win32_rc_file target)
|
||||||
|
set(prohibited_target_types INTERFACE_LIBRARY STATIC_LIBRARY OBJECT_LIBRARY)
|
||||||
get_target_property(target_type ${target} TYPE)
|
get_target_property(target_type ${target} TYPE)
|
||||||
if (target_type STREQUAL "INTERFACE_LIBRARY")
|
if(target_type IN_LIST prohibited_target_types)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user