cmake: do not add_plugintest if plugin is not available
@@ -52,6 +52,9 @@ function (add_plugintest testname)
"Trying to add plugintest ${testname} but no such plugin was added (try to use LINK_PLUGIN)"
)
endif ()
+ # plugin for test was not added in previous phase or removed
+ # because of missing deps, exit quietly
+ return ()
endif ()
set (PLUGIN_NAME elektra-${testname})
