diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e75c11..74e9919 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,12 +294,9 @@ endif() # ======================================================== # Test executables # ======================================================== -# Default follows the build mode, not a fixed value: a catkin workspace is a -# development machine and gets the tests, while the standalone CMake build is how -# the robot is deployed and must not need GTest installed at all. Force it on with -# -DBUILD_COSTMAP_TESTS=ON to run the tests from a standalone build. +# Tests are OFF by default in both build modes; enable with -DBUILD_COSTMAP_TESTS=ON. option(BUILD_COSTMAP_TESTS "Build robot_costmap_2d test executables" - ${BUILDING_WITH_CATKIN}) + OFF) if(BUILD_COSTMAP_TESTS) find_package(GTest REQUIRED)