From: Timo Röhling Date: Sat, 23 Oct 2021 17:19:52 +0000 (+0200) Subject: Fix combine_static_libs macro X-Git-Tag: archive/raspbian/1.9.25+dfsg2-8+rpi1~1^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e9d1a520c7a993eb974372390955cd053159b65;p=filament.git Fix combine_static_libs macro Gbp-Pq: Name 0004-Fix-combine_static_libs-macro.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b6cd7ab..6786b22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -495,7 +495,12 @@ function(combine_static_libs TARGET OUTPUT DEPS) # Loop through the dependent libraries and query their location on disk. set(DEPS_FILES ) foreach(DEPENDENCY ${DEPS}) - list(APPEND DEPS_FILES "$") + if(TARGET ${DEPENDENCY}) + get_property(dep_type TARGET ${DEPENDENCY} PROPERTY TYPE) + if(dep_type STREQUAL "STATIC_LIBRARY") + list(APPEND DEPS_FILES "$") + endif() + endif() endforeach() add_custom_command(