diff --git a/CMakeModules/CalamaresAddPlugin.cmake b/CMakeModules/CalamaresAddPlugin.cmake index 891050626..5143b966a 100644 --- a/CMakeModules/CalamaresAddPlugin.cmake +++ b/CMakeModules/CalamaresAddPlugin.cmake @@ -67,7 +67,9 @@ # already handles skip-reasons and collects them for reporting. # # The target defined this way is called "calamares__", -# e.g. "calamares_viewmodule_packagechooserq". +# e.g. "calamares_viewmodule_packagechooserq". The function sets a variable +# in its **calling** scope, `_TARGET` with the full name +# of the target. include( CMakeParseArguments ) @@ -226,4 +228,6 @@ function( calamares_add_plugin ) message( "" ) endif() endif() + + set(${NAME}_TARGET ${target} PARENT_SCOPE) endfunction()