From 5a00be95b9225740b48a333fa78271a252a7eedb 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_VOXEL_GRID_TESTS now defaults to OFF in both build modes instead of following BUILDING_WITH_CATKIN. Enable the tests with -DBUILD_VOXEL_GRID_TESTS=ON. --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42131d5..ab02726 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,11 +131,8 @@ endif() # ======================================================== # Test executables # ======================================================== -# 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_VOXEL_GRID_TESTS=ON to build them -# from a standalone build. -option(BUILD_VOXEL_GRID_TESTS "Build the robot_voxel_grid unit tests" ${BUILDING_WITH_CATKIN}) +# Tests are OFF by default in both build modes; enable with -DBUILD_VOXEL_GRID_TESTS=ON. +option(BUILD_VOXEL_GRID_TESTS "Build the robot_voxel_grid unit tests" OFF) if(BUILD_VOXEL_GRID_TESTS AND (GTest_FOUND OR GTEST_FOUND)) enable_testing()