From 71cb07e6e7de637e9fed2bbe69a1530b298d5a04 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 5 Apr 2023 15:16:12 +0200 Subject: [PATCH] CMakeLists.txt: Set strip flag for GNU linkers on release config. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d09074..295b339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,6 +87,11 @@ add_compile_options( "$<$:$<$:/O1>>" ) +add_link_options( + # Release + "$<$:$<$:-s>>" +) + # Project config file configure_file(config.hpp.in "${PROJECT_BINARY_DIR}/config.hpp" @ONLY) include_directories(${PROJECT_BINARY_DIR})