diff --git a/CMakeLists.txt b/CMakeLists.txt index 1be9197..ddabb3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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($<$:-s>) # strip dist binaries + endif () endif () if (WIN32)