1
0
Fork 0

Use -Wl,--as-needed

This commit is contained in:
Ilya Fedin 2021-09-10 22:28:57 +04:00 committed by John Preston
parent aa5afd0a41
commit 49ca0abd71

View file

@ -17,6 +17,11 @@ INTERFACE
-Wno-sign-compare
)
target_link_options(common_options
INTERFACE
-Wl,--as-needed
)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(common_options
INTERFACE