mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +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
Notes:
sideshowbarker
2024-07-17 07:07:21 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/b04de3090f Pull-request: https://github.com/SerenityOS/serenity/pull/15257 Reviewed-by: https://github.com/trflynn89 ✅
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…
Reference in a new issue