From 9134c601a41e4a51f011a3f7b7c40e73a2329c6c Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Sun, 27 Jul 2025 10:21:21 +0100 Subject: [PATCH] Configuration, CMake - Disable build GLTF without RapidJSON (#646) Exclude TKDEGLTF and TKXSDRAWGLTF toolkits when RapidJSON is disabled --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74ba8ff1df..bed7cc3472 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -742,7 +742,12 @@ if (CAN_USE_RAPIDJSON AND USE_RAPIDJSON) elseif (NOT CAN_USE_RAPIDJSON) OCCT_CHECK_AND_UNSET ("USE_RAPIDJSON") OCCT_UNSET_VCPKG_FEATURE ("rapidjson") +else() + list (REMOVE_ITEM BUILD_TOOLKITS TKDEGLTF) + list (REMOVE_ITEM BUILD_TOOLKITS TKXSDRAWGLTF) + message(STATUS "Info: TKDEGLTF and TKXSDRAWGLTF toolkits excluded due to RapidJSON usage is disabled") endif() + if (NOT CAN_USE_RAPIDJSON OR BUILD_USE_VCPKG) OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_RAPIDJSON") OCCT_CHECK_AND_UNSET ("INSTALL_RAPIDJSON") -- 2.39.5