[cmake-developers] try_compile does not work for linker flags?
steveire at gmail.com
Fri Oct 7 10:59:10 EDT 2011
Brad King wrote:
> 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.
Ok, I've added it to the CheckCXXCompilerFlag unit test in the topic, so
hopefully that will show the warnings to check for (if any).
More information about the cmake-developers