cmake: work around a missing LINK_DEPENDS bug

This commit is contained in:
Lephenixnoir 2025-03-24 21:11:32 +01:00
parent 25794c505d
commit b1a696b996
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 2 additions and 6 deletions

View file

@ -56,8 +56,6 @@ function(generate_g1a)
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)
if(DEFINED G1A_ICON)
get_target_property(G1A_LDEP "${G1A_TARGET}" LINK_DEPENDS)
list(APPEND G1A_LDEP "${G1A_ICON}")
set_target_properties("${G1A_TARGET}" PROPERTIES LINK_DEPENDS "${G1A_LDEP}")
set_property(TARGET "${G1A_TARGET}" APPEND PROPERTY LINK_DEPENDS "${G1A_ICON}")
endif()
endfunction()

View file

@ -68,8 +68,6 @@ function(generate_g3a)
COMMAND_EXPAND_LISTS
)
if(DEFINED G3A_ICONS)
get_target_property(G3A_LDEP "${G3A_TARGET}" LINK_DEPENDS)
list(APPEND G3A_LDEP "${G3A_ICON1}" "${G3A_ICON2}")
set_target_properties("${G3A_TARGET}" PROPERTIES LINK_DEPENDS "${G3A_LDEP}")
set_property(TARGET "${G3A_TARGET}" APPEND PROPERTY LINK_DEPENDS "${G3A_ICON1}" "${G3A_ICON2}")
endif()
endfunction()