[cmake-developers] foreach(IN LISTS) or not
Rolf Eike Beer
eike at sf-mail.de
Sun Aug 19 08:09:12 EDT 2012
I'm wondering if it makes sense to do a mass replace of
foreach(listvar ${somevar})
to
foreach(listvar IN LISTS somevar)
>From what I see this should be more efficient as the variable is not first
expanded and then parsed again, it could save from potential trouble if e.g.
somevar includes elements with spaces, and it should not introduce any further
hassle.
Opinions?
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120819/1d225f32/attachment.sig>
More information about the cmake-developers
mailing list