]> OCCT Git - occt.git/commitdiff
Configuration, CMake - Disable build GLTF without RapidJSON (#646)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sun, 27 Jul 2025 09:21:21 +0000 (10:21 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 09:21:21 +0000 (10:21 +0100)
Exclude TKDEGLTF and TKXSDRAWGLTF toolkits when RapidJSON is disabled

CMakeLists.txt

index 74ba8ff1df900039bf307f27dabda09df7cf57b4..bed7cc34727ac9c42baeb998d3b25eb5021d5af8 100644 (file)
@@ -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")