If building simulate with USD support remove the no-deprecated warning due to deprecated header usage in USD.

PiperOrigin-RevId: 822807399
Change-Id: I2765f4a7260b5ac8b3ef5894c1c5ce7a3a745baf
This commit is contained in:
Sam Haves
2025-10-22 17:55:35 -07:00
committed by Copybara-Service
parent febe75d54b
commit 18e60369f3
+7
View File
@@ -186,6 +186,13 @@ if(SIMULATE_BUILD_EXECUTABLE)
endif()
if (MUJOCO_WITH_USD)
# pxr/usd/tf/hashset.h might include deprecated headers so disable this check
# when compiling with USD enabled.
target_compile_options(
simulate
PRIVATE -Wno-deprecated
)
target_link_libraries(
simulate
mujoco::usd::mjcf