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:
committed by
Copybara-Service
parent
febe75d54b
commit
18e60369f3
@@ -186,6 +186,13 @@ if(SIMULATE_BUILD_EXECUTABLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MUJOCO_WITH_USD)
|
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(
|
target_link_libraries(
|
||||||
simulate
|
simulate
|
||||||
mujoco::usd::mjcf
|
mujoco::usd::mjcf
|
||||||
|
|||||||
Reference in New Issue
Block a user