diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c7bba9..c48bb1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,16 +116,14 @@ endif() # Focused contract tests use a tiny self-contained runner so both catkin and # standalone builds exercise the same code without adding a test dependency. # -# Tests are a development-machine concern: a catkin workspace is where they run, -# while the standalone CMake build is the robot deployment path and must not -# produce test executables. Force with -DBUILD_DOCK_PLANNER_TESTS=ON to build -# them from a standalone build. +# Tests are OFF by default in both build modes; enable with +# -DBUILD_DOCK_PLANNER_TESTS=ON. # # include(CTest) used to sit here for the standalone branch. It is deliberately # gone: it defines BUILD_TESTING=ON for the WHOLE CMake tree, which switched the # tests of every other package in the aggregate build back on. option(BUILD_DOCK_PLANNER_TESTS "Build the dock_planner contract tests" - ${BUILDING_WITH_CATKIN}) + OFF) if(BUILD_DOCK_PLANNER_TESTS AND (NOT BUILDING_WITH_CATKIN OR CATKIN_ENABLE_TESTING))