[CMake] Multiple generators on the same library

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Apr 12 20:21:44 EDT 2007


>> CMake is a great program, once you get to grips with it, more examples
>> for the documentation would make that much easier.

>however
>http://www.cmake.org/HTML/RunningCMake.html

The in-source and out-of-source build are documented there, yet that
documentation is going to lead a lot of users astray since it is not
mentioned there that if a CMakeCache.txt file is in the source tree (say
from a previous in-source build) the out-of-source build won't work.

I hope that "feature" is scheduled for removal the next time (2.6?) the
CMake developers are willing to accept a backwards incompatible change since
so many stumble over that "feature" despite the FAQ
(http://www.cmake.org/Wiki/CMake_FAQ#I_run_an_out-of-source_build_but_CMake_generates_in-source_anyway._Why.3F)
entry warning users about it.

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