From 34aa2655e789734b3aeafda93d0a3d80b015a04a Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 17 Feb 2026 00:29:07 +0100 Subject: [PATCH] strip a lot debug stuff --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 220dd67..3d1c6e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project(video_to_rosbag) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wall -Wextra -Wpedantic) endif() +if(CMAKE_BUILD_TYPE STREQUAL "Release") + add_link_options("-s") # or use CMAKE_EXE_LINKER_FLAGS_RELEASE +endif() find_package(ament_cmake REQUIRED) find_package(rclcpp REQUIRED)