If you must run a script verbatim, then write a script. Then have cmake just execute the script.
On Wed, Mar 17, 2010 at 1:42 PM, Alan W. Irwin <[email protected]>wrote: > According to "Unix in a Nutshell", the bourne and korn shells use the > following method of splitting stderr and stdout into two separate > files. > > (cmd >f1) 2>f2 > > I have checked that the parentheses work for bash, although they are not > necessary. Therefore, the above seems to be a good candidate for the best > way to split stderr and stdout if you want your build system to work for a > wide variety of bourne (or korn) shell dialects. > > However, CMake COMMAND totally buggers the above construct regardless of > whether VERBATIM is set and regardless of spacing around the parentheses or > not. A number of issues occur, but the constant one for all variants that > I > tried is the opening parentheses are quoted which is then interpreted as a > separate command (at least by bash). > > Of course, I can always drop the parentheses for my own (bash) needs, and > then all is well. But I am concerned that may be a non-standard bashism > that is being forced on me by CMake that will not work for most/all other > bourne shell dialects. > > 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 >
_______________________________________________ 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
