PiperOrigin-RevId: 950629900 Change-Id: If4b3755f0e8653efbd9e6a4134140dd96b1f743d
This commit is contained in:
committed by
Copybara-Service
parent
3990305373
commit
6f487086a5
+1
-1
@@ -56,7 +56,7 @@ macro(mujoco_test name)
|
||||
set_target_properties(${name} PROPERTIES BUILD_RPATH ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
|
||||
# gtest_discover_tests is recommended over gtest_add_tests, but has issues on Windows.
|
||||
# It also requires a GoogleTest binary, so we fall back for custom MAIN_TARGET (e.g. benchmarks).
|
||||
if(WIN32 OR _ARGS_MAIN_TARGET)
|
||||
if(WIN32 OR APPLE OR _ARGS_MAIN_TARGET)
|
||||
gtest_add_tests(
|
||||
TARGET ${name}
|
||||
SOURCES ${name}.cc
|
||||
|
||||
Reference in New Issue
Block a user