diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2022-10-15 11:22:05 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-15 13:12:42 +0200 |
commit | f70ec7582ffad5a5e82bb1a8ddcb69d7ab8dd9a3 (patch) | |
tree | bfc8a82185c780ddf7604add55afebd47624d316 /Meta | |
parent | acc1c2b3cb1e41a931431837afeff9d6ec600caf (diff) | |
download | serenity-f70ec7582ffad5a5e82bb1a8ddcb69d7ab8dd9a3.zip |
Meta: Properly ignore targets which don't have a component name
Previously we'd add [component_name-NOTFOUND] sections to the
components.ini file for targets which weren't part of a component.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/CMake/serenity_components.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/CMake/serenity_components.cmake b/Meta/CMake/serenity_components.cmake index 579296ff75..d7056aacbe 100644 --- a/Meta/CMake/serenity_components.cmake +++ b/Meta/CMake/serenity_components.cmake @@ -47,7 +47,7 @@ function(export_components_helper file_name current_dir) continue() # Custom properties are not allowed to be set on INTERFACE libraries endif() get_target_property(component_name "${target}" SERENITY_COMPONENT_NAME) - if(NOT "${component_name}" STREQUAL "") + if(NOT "${component_name}" STREQUAL "" AND NOT "${component_name}" STREQUAL "component_name-NOTFOUND") get_target_property(component_name "${target}" SERENITY_COMPONENT_NAME) get_target_property(component_description "${target}" SERENITY_COMPONENT_DESCRIPTION) get_target_property(component_recommended "${target}" SERENITY_COMPONENT_RECOMMENDED) |