From e0d6f972cf6afb09609211d4bf7aa1617732835d 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_SBPL_LATTICE_TESTS now defaults to OFF in both build modes instead of following BUILDING_WITH_CATKIN. Enable the tests with -DBUILD_SBPL_LATTICE_TESTS=ON. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 84f00ab..e64f60e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,7 +237,8 @@ else() message(STATUS "=================================") endif() -option(BUILD_SBPL_LATTICE_TESTS "Build sbpl_lattice_planner test executables" ${BUILDING_WITH_CATKIN}) +# Tests are OFF by default in both build modes; enable with -DBUILD_SBPL_LATTICE_TESTS=ON. +option(BUILD_SBPL_LATTICE_TESTS "Build sbpl_lattice_planner test executables" OFF) if(BUILD_SBPL_LATTICE_TESTS) find_package(GTest REQUIRED) add_executable(direction_environment_test test/direction_environment_test.cpp)