On 02/04/2011 01:44 PM, David Cole wrote: > Don't you mean: > LIST(GET FOO 0 TEST) > > FOO is the file(STRINGS result. "test" is the filename... > > > On Fri, Feb 4, 2011 at 1:03 PM, Johan Björk wrote: > Is there a better way to write the above code? (Ie, get the first > element, no matter if it's a list or not?)
Also, if you really only want to read the first string then use the LIMIT_COUNT option to file(STRINGS). -Brad _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
