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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user