From: Pasukhin Dmitry Date: Sun, 27 Jul 2025 09:21:21 +0000 (+0100) Subject: Configuration, CMake - Disable build GLTF without RapidJSON (#646) X-Git-Tag: V8_0_0_rc2~5 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=9134c601a41e4a51f011a3f7b7c40e73a2329c6c;p=occt.git Configuration, CMake - Disable build GLTF without RapidJSON (#646) Exclude TKDEGLTF and TKXSDRAWGLTF toolkits when RapidJSON is disabled --- 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")