Gbp-Pq: Name 0004-Fix-combine_static_libs-macro.patch
# Loop through the dependent libraries and query their location on disk.
set(DEPS_FILES )
foreach(DEPENDENCY ${DEPS})
- list(APPEND DEPS_FILES "$<TARGET_FILE:${DEPENDENCY}>")
+ if(TARGET ${DEPENDENCY})
+ get_property(dep_type TARGET ${DEPENDENCY} PROPERTY TYPE)
+ if(dep_type STREQUAL "STATIC_LIBRARY")
+ list(APPEND DEPS_FILES "$<TARGET_FILE:${DEPENDENCY}>")
+ endif()
+ endif()
endforeach()
add_custom_command(