cmake: Strip Release binaries when building with gcc.
Change-Id: Iaf87d6b65a38b6d0ecb66c5cb8bc7164741d7419
This commit is contained in:
parent
72904569e3
commit
83e4078d9c
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|||
endif()
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
add_compile_options(-Wall -Wextra)
|
||||
add_link_options($<$<CONFIG:RELEASE>:-s>)
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue