cmake: Strip Release binaries when building with gcc.

Change-Id: Iaf87d6b65a38b6d0ecb66c5cb8bc7164741d7419
This commit is contained in:
Dominik Riebeling 2022-02-19 20:14:57 +01:00
parent 72904569e3
commit 83e4078d9c

View file

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