[CMake] [BUG?] Setting environment variables with embedded blanks does not work with VERBATIM
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Wed Jan 6 16:14:49 EST 2010
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
__________________________
More information about the CMake
mailing list