Suppressing LINK_WHAT_YOU_USE warning

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Suppressing LINK_WHAT_YOU_USE warning

Nikos Chantziaras
When using the LINK_WHAT_YOU_USE feature to detect unneeded library
dependencies in a C++ project, I get this:

Unused direct dependencies:

It seems CMake should be smart enough to suppress this, as it doesn't
seem possible to not link against libm?

Is there a way to suppress this warning? Or a way to not link against libm?


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: