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))