From 9cbac142c2844c333f71f97fbe36c884f42c263b Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 6 Sep 2021 19:14:01 +0300 Subject: [PATCH] Update CMakeLists.txt --- module/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index bc6c52fb..bd0771b8 100644 --- a/module/CMakeLists.txt +++ b/module/CMakeLists.txt @@ -175,6 +175,8 @@ if(${CMAKE_BUILD_TYPE} MATCHES "(Release)+") else() target_compile_definitions(SqModule PRIVATE _DEBUG=1 SQMOD_EXCEPTLOC=1) endif() +# Strip binary +set_target_properties(SqModule PROPERTIES LINK_FLAGS_RELEASE -s) # Force 32-bit binaries when necessary if(FORCE_32BIT_BIN) set_target_properties(SqModule PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")