mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 00:51:33 +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:
parent
cfa9b44894
commit
b04de3090f
|
@ -11,6 +11,11 @@ function(get_linked_lagom_libraries_impl target output)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
get_target_property(target_is_imported "${target}" IMPORTED)
|
||||||
|
if (target_is_imported)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
get_target_property(target_type "${target}" TYPE)
|
get_target_property(target_type "${target}" TYPE)
|
||||||
|
|
||||||
if ("${target_type}" STREQUAL "SHARED_LIBRARY")
|
if ("${target_type}" STREQUAL "SHARED_LIBRARY")
|
||||||
|
|
Loading…
Reference in a new issue