From f4dc8a628511680f7bf9a1896a2213fcddb64d53 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Tue, 4 Jul 2023 14:04:42 +0200 Subject: [PATCH] Add strip target --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bfb6852..39517a52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1053,6 +1053,10 @@ if(FALSE) endif() endif() +if(STATIC_BUILD_DO_NOT_USE AND NOT WIN32) + add_custom_target(strip COMMAND strip -s ${BINARY_TARGETS}) +endif() + if(NOT $PRJ_VERSION_FULL} STREQUAL "") if(WIN32) set(CPACK_GENERATOR "NSIS;ZIP;7Z")