[cmake-developers] if (FOO == BAR) ...

Brad King brad.king at kitware.com
Thu Mar 21 17:06:21 EDT 2013


On 03/21/2013 03:40 PM, Clinton Stimpson wrote:
> Is there a best practices using existing functionality to always avoid 
> automatic dereference when comparing strings?

if("x${LHS}" STREQUAL "x${RHS}")

One can construct pathological cases that will break it but it works
well.

-Brad



More information about the cmake-developers mailing list