mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 01:20:50 +08:00
Configuration, CMake - Disable build GLTF without RapidJSON (#646)
Exclude TKDEGLTF and TKXSDRAWGLTF toolkits when RapidJSON is disabled
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user