On 2010-01-06 12:48-0500 Brad King wrote:
VERBATIM COMMAND env DUMMY=${CMAKE_CURRENT_BINARY_DIR} printenv DUMMY ^^^ more portable version of syntax
Thanks very much for that suggestion for increasing shell syntax portability. I just didn't have enough cross-shell experience to realize dropping the "env" was a bashism. Now you have drawn my attention to env, I see it is well documented in man pages, "Unix in a Nutshell", etc., and I see also that a VERBATIM add_custom_command works perfectly with the "env" syntax. Thanks, again! 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