eliminate debug info in release, size of executable is 1/10

This commit is contained in:
qPCR4vir 2019-06-12 12:44:01 +02:00
parent 17240f5a51
commit ceb81a0876

View File

@ -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")