[CMake] A CMake language peculiarity I have just discovered
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Sat Sep 16 16:55:33 EDT 2006
I am pleased with the way that CMake normally defaults to writing files to
the build tree. This default behaviour encourages users to keep a clean,
unmolested source tree.
Thus, I was surprised recently to discover that
FILE(WRITE filename "message to write"... )
created by default a file called filename in the source tree.
Of course, to keep a clean source tree you can use
${CMAKE_CURRENT_BINARY_DIR}/filename which I was forced to do. But I was
wondering if this default contamination of the source tree by FILE(WRITE...
was a recently introduced bug (I use cmake-2.4.3) that should be fixed? Or
is there some logical reason which I am missing for putting FILE(WRITE...
results in the source tree by default?
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 Yorick front-end to PLplot (yplot.sf.net); 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