mirror of https://github.com/WerWolv/ImHex
build: fix IMHEX_INCLUDE_PLUGINS defined check
This commit is contained in:
parent
3f30e63d95
commit
e9b5cdbccf
|
|
@ -590,7 +590,9 @@ endfunction()
|
||||||
macro(detectBundledPlugins)
|
macro(detectBundledPlugins)
|
||||||
file(GLOB PLUGINS_DIRS "plugins/*")
|
file(GLOB PLUGINS_DIRS "plugins/*")
|
||||||
|
|
||||||
if (NOT DEFINED IMHEX_INCLUDE_PLUGINS)
|
if (IMHEX_INCLUDE_PLUGINS)
|
||||||
|
set(PLUGINS ${IMHEX_INCLUDE_PLUGINS})
|
||||||
|
else()
|
||||||
foreach(PLUGIN_DIR ${PLUGINS_DIRS})
|
foreach(PLUGIN_DIR ${PLUGINS_DIRS})
|
||||||
if (EXISTS "${PLUGIN_DIR}/CMakeLists.txt")
|
if (EXISTS "${PLUGIN_DIR}/CMakeLists.txt")
|
||||||
get_filename_component(PLUGIN_NAME ${PLUGIN_DIR} NAME)
|
get_filename_component(PLUGIN_NAME ${PLUGIN_DIR} NAME)
|
||||||
|
|
@ -599,8 +601,6 @@ macro(detectBundledPlugins)
|
||||||
endif ()
|
endif ()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
|
||||||
set(PLUGINS ${IMHEX_INCLUDE_PLUGINS})
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
foreach(PLUGIN_NAME ${PLUGINS})
|
foreach(PLUGIN_NAME ${PLUGINS})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue