diff --git a/cmake/sdk/CMakeLists.txt b/cmake/sdk/CMakeLists.txt index 1b2c766f1..b1d818775 100644 --- a/cmake/sdk/CMakeLists.txt +++ b/cmake/sdk/CMakeLists.txt @@ -9,7 +9,7 @@ include(ImHexPlugin) function(add_subdirectory_if_exists folder) if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${folder}/CMakeLists.txt") - add_subdirectory("${folder}") + add_subdirectory("${folder}" EXCLUDE_FROM_ALL) endif() endfunction() @@ -17,7 +17,7 @@ set(IMHEX_EXTERNAL_PLUGIN_BUILD ON PARENT_SCOPE) set(IMHEX_EXTERNAL_PLUGIN_BUILD ON) add_custom_target(imhex_all) -add_subdirectory(lib/third_party/imgui) +add_subdirectory(lib/third_party/imgui EXCLUDE_FROM_ALL) set(FMT_INSTALL OFF CACHE BOOL "" FORCE) add_subdirectory_if_exists(lib/third_party/fmt) @@ -25,10 +25,10 @@ set(FMT_LIBRARIES fmt::fmt-header-only PARENT_SCOPE) add_subdirectory_if_exists(lib/third_party/nlohmann_json) -add_subdirectory(lib/external/libwolv) +add_subdirectory(lib/external/libwolv EXCLUDE_FROM_ALL) -set(LIBPL_ENABLE_CLI OFF) -add_subdirectory(lib/external/pattern_language) +set(LIBPL_ENABLE_CLI OFF CACHE BOOL "" FORCE) +add_subdirectory(lib/external/pattern_language EXCLUDE_FROM_ALL) add_subdirectory(lib/libimhex)