[cmake-developers] try_compile does not work for linker flags?

Brad King brad.king at kitware.com
Fri Oct 7 08:29:41 EDT 2011


On 10/7/2011 7:21 AM, Stephen Kelly wrote:
> I have a check for the Wl,--no-undefined flag in the test, and on some
> platforms the check passes (it seems), but the test fails later.

Many linkers simply warn about an unused flag and ignore it.
It's hard to test for them.  Unfortunately I don't have time
now to dig into this to be of further help.

-Brad


More information about the cmake-developers mailing list