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:
         /lib64/libm.so.6

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 www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

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

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake