Fixes #382 (compile with unittests disabled)

This commit is contained in:
gregor
2022-07-16 05:56:32 -05:00
parent af12322e9d
commit 7ee01ddcac
+3 -5
View File
@@ -159,11 +159,9 @@ endif()
if(BUILD_TESTING AND MUJOCO_BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()
if(BUILD_TESTING AND MUJOCO_TEST_PYTHON_UTIL)
enable_testing()
add_subdirectory(python/mujoco/util)
if(MUJOCO_TEST_PYTHON_UTIL)
add_subdirectory(python/mujoco/utils)
endif()
endif()
if(NOT (APPLE AND MUJOCO_BUILD_MACOS_FRAMEWORKS))