From 7ee01ddcacaf33eec93fd8a34523fd99e42d6a6f Mon Sep 17 00:00:00 2001 From: gregor Date: Sat, 16 Jul 2022 05:56:32 -0500 Subject: [PATCH 1/2] Fixes #382 (compile with unittests disabled) --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c61a1b6f..f25e5eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)) From 0223773a546f5cd11091b3b258219eef84550eeb Mon Sep 17 00:00:00 2001 From: gregor Date: Sat, 16 Jul 2022 06:51:59 -0500 Subject: [PATCH 2/2] Fix typo on CMake script --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f25e5eeb..1dc06a86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,7 +160,7 @@ if(BUILD_TESTING AND MUJOCO_BUILD_TESTS) enable_testing() add_subdirectory(test) if(MUJOCO_TEST_PYTHON_UTIL) - add_subdirectory(python/mujoco/utils) + add_subdirectory(python/mujoco/util) endif() endif()