mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-20 10:08:47 +00:00
Lagom: Skip IMPORTED targets in get_linked_lagom_libraries
This script is useful when wanting to install lagom libraries for projects using Lagom via FetchContent, but trips over itself if the project links other non-Lagom imported targets to itself. So, let's just skip them.
This commit is contained in:
@@ -11,6 +11,11 @@ function(get_linked_lagom_libraries_impl target output)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_target_property(target_is_imported "${target}" IMPORTED)
|
||||
if (target_is_imported)
|
||||
return()
|
||||
endif()
|
||||
|
||||
get_target_property(target_type "${target}" TYPE)
|
||||
|
||||
if ("${target_type}" STREQUAL "SHARED_LIBRARY")
|
||||
|
||||
Reference in New Issue
Block a user