diff --git a/CMakeLists.txt b/CMakeLists.txt index 9935cf9..e65a01a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,6 +195,7 @@ function(give_options_without_warnings target) $<$:${BUILD_FLAGS_RELEASE}> $<$:${BUILD_FLAGS_DEBUG}> -Bsymbolic-functions + -Wl,--as-needed $<$:-Wl,--hash-style=gnu>) get_target_property(target_type ${target} TYPE)