Configuration, CMake - Disable build GLTF without RapidJSON (#646)

Exclude TKDEGLTF and TKXSDRAWGLTF toolkits when RapidJSON is disabled
This commit is contained in:
Pasukhin Dmitry
2025-07-27 10:21:21 +01:00
committed by GitHub
parent 0eb86fb05a
commit 9134c601a4

View 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")