[cmake-developers] if (FOO == BAR) ...
Alexander Neundorf
neundorf at kde.org
Thu Mar 14 15:47:57 EDT 2013
Hi,
I pushed the AddEqualOperator to stage, it adds the == operator to if(), which
simply string-compares the both arguments, with no variable lookup (... which
can lead to unwanted effects when using STREQUAL)
Does that look like a good solution ?
If so, I'll add tests, docs, etc., so it can go into 2.8.12.
I could also make it ===, so it looks a bit more weird ;-) (ruby has it too,
and ruby is cool)
Alex
More information about the cmake-developers
mailing list