From 38950e4e41c6b17eeb89f8ad73b7e121b4db2d83 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Mon, 15 Jan 2024 10:00:46 +0500 Subject: [PATCH] cmake: strip release builds. --- cl_dll/CMakeLists.txt | 4 ++++ dlls/CMakeLists.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cl_dll/CMakeLists.txt b/cl_dll/CMakeLists.txt index cc40c27e..f1dce6bf 100644 --- a/cl_dll/CMakeLists.txt +++ b/cl_dll/CMakeLists.txt @@ -228,3 +228,7 @@ install( TARGETS ${CLDLL_LIBRARY} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE ) + +add_custom_command(TARGET ${CLDLL_LIBRARY} + POST_BUILD DEPENDS ${CLDLL_LIBRARY} + COMMAND $<$:${CMAKE_STRIP}> -s $) diff --git a/dlls/CMakeLists.txt b/dlls/CMakeLists.txt index 82460492..460f7a19 100644 --- a/dlls/CMakeLists.txt +++ b/dlls/CMakeLists.txt @@ -194,3 +194,7 @@ install( TARGETS ${SVDLL_LIBRARY} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + +add_custom_command(TARGET ${SVDLL_LIBRARY} + POST_BUILD DEPENDS ${SVDLL_LIBRARY} + COMMAND $<$:${CMAKE_STRIP}> -s $)