From b0dec0d282ed8a4f09533bc6eedbe5ba167bf5c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timo=20R=C3=B6hling?= Date: Sat, 23 Oct 2021 19:19:52 +0200 Subject: [PATCH] Fix combine_static_libs macro Gbp-Pq: Name 0004-Fix-combine_static_libs-macro.patch --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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( -- 2.30.2