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?