On 2010-03-17 13:46-0400 David Cole wrote:

If you must run a script verbatim, then write a script.
Then have cmake just execute the script.

My use case is I plan to have about 100 custom commands in my FreeEOS test
suite, and they all need their stderr split from stdout.  I guess the silver
lining here is I can use the same script for all of them so the workaround
won't be that much trouble. Nevertheless, it is a shame that CMake doesn't
handle this standard case correctly without having to resort to a workaround
script.

Currently VERBATIM means this according to the documentation:

If VERBATIM is given then all arguments to the commands will be escaped
properly for the build tool so that the invoked command receives each
argument unchanged.

How about extending that VERBATIM idea to the command itself (e.g., so
that command-line parentheses are handled properly)?

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to