mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +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
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue