[cmake-developers] conditionals in generator expressions
Stephen Kelly
steveire at gmail.com
Mon Sep 17 10:20:51 EDT 2012
Brad King wrote:
> when either nameQual or dirQual is true that is a compile-time constant
> so the "return result" line is truly unreachable in that instantiation.
Yes. I was assuming a compiler optimization would exist for that kind of
thing.
> You need to use compile-time conditional code rather than "runtime"
> tests of compile-time constants. This is true for the other template
> parameters too.
Done.
Thanks,
Steve.
More information about the cmake-developers
mailing list