From ceb81a087695ecf03d76ddc07876fb72b1ad96db Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Wed, 12 Jun 2019 12:44:01 +0200 Subject: [PATCH] eliminate debug info in release, size of executable is 1/10 --- build/cmake/compilers.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/cmake/compilers.cmake b/build/cmake/compilers.cmake index 80daf9e9..c8db4976 100644 --- a/build/cmake/compilers.cmake +++ b/build/cmake/compilers.cmake @@ -14,8 +14,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AND NOT MINGW?? - target_compile_options(nana PRIVATE -Wall - PUBLIC -g ) + target_compile_options(nana PRIVATE -Wall) # todo: set in target property of nana set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG")