From 2695eb4e5548c57f88d76d6ed66b378b03ef6570 Mon Sep 17 00:00:00 2001 From: duongtd Date: Tue, 17 Nov 2026 20:36:11 +0700 Subject: [PATCH] build: turn tests off by default in catkin and standalone builds BUILD_COSTMAP_TESTS now defaults to OFF in both build modes instead of following BUILDING_WITH_CATKIN. Enable the tests with -DBUILD_COSTMAP_TESTS=ON. --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)