From f9c6866c7b4bbb16db01a3c20362bf1c5dd8a5a6 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Sat, 13 Dec 2025 23:54:58 +0100 Subject: [PATCH] build: require all plugins that builtint depends on to be present --- cmake/build_helpers.cmake | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 28992aa58..0cdbfb570 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -611,9 +611,13 @@ macro(detectBundledPlugins) message(FATAL_ERROR "No bundled plugins enabled") endif() - if (NOT ("builtin" IN_LIST PLUGINS)) - message(FATAL_ERROR "The 'builtin' plugin is required for ImHex to work!") - endif () + set(REQUIRED_PLUGINS builtin fonts ui) + foreach(PLUGIN ${REQUIRED_PLUGINS}) + list(FIND PLUGINS ${PLUGIN} PLUGIN_INDEX) + if (PLUGIN_INDEX EQUAL -1) + message(FATAL_ERROR "Required plugin '${PLUGIN}' is not enabled!") + endif() + endforeach() endmacro() macro(setVariableInParent variable value)