Skip to content

Commit

Permalink
Strip dist binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Nov 25, 2022
1 parent 8ed1b7c commit 04fc746
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ if (PACKAGE_VERSION_COMMITHASH STREQUAL "dev")
set(EMAP_DEV_BUILD 1)
else ()
set(EMAP_DEV_BUILD 0)
if (CMAKE_COMPILER_IS_GNUCXX)
add_link_options($<$<CONFIG:RELEASE>:-s>) # strip dist binaries
endif ()
endif ()

if (WIN32)
Expand Down

0 comments on commit 04fc746

Please sign in to comment.