build: require all plugins that builtint depends on to be present

This commit is contained in:
iTrooz 2025-12-13 23:54:58 +01:00
parent 388dccfd9f
commit f9c6866c7b
No known key found for this signature in database
GPG Key ID: 8B83F77667B1BC6A
1 changed files with 7 additions and 3 deletions

View File

@ -611,9 +611,13 @@ macro(detectBundledPlugins)
message(FATAL_ERROR "No bundled plugins enabled") message(FATAL_ERROR "No bundled plugins enabled")
endif() endif()
if (NOT ("builtin" IN_LIST PLUGINS)) set(REQUIRED_PLUGINS builtin fonts ui)
message(FATAL_ERROR "The 'builtin' plugin is required for ImHex to work!") foreach(PLUGIN ${REQUIRED_PLUGINS})
endif () list(FIND PLUGINS ${PLUGIN} PLUGIN_INDEX)
if (PLUGIN_INDEX EQUAL -1)
message(FATAL_ERROR "Required plugin '${PLUGIN}' is not enabled!")
endif()
endforeach()
endmacro() endmacro()
macro(setVariableInParent variable value) macro(setVariableInParent variable value)