[CMake] Suppressing LINK_WHAT_YOU_USE warning

Nikos Chantziaras realnc at gmail.com
Fri Mar 23 05:31:06 EDT 2018


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?



More information about the CMake mailing list