[CMake] How to use file(WRITE... to write the literal string $'\r' to a file
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Thu Nov 1 05:52:10 EDT 2012
On 2012-10-31 20:24-0400 David Cole wrote:
> This works for me:
>
> file(WRITE "w.txt" "$'\\r'")
and Matthew came to a similar conclusion.
Thanks to both of you for this suggested simplification
which also works here for me.
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); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); 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