[cmake-developers] Fortran detection, issue 9220

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Feb 12 04:51:15 EST 2015


Here is one more extremely simple idea for solving this bug.

Assuming all of CMake always errors out using the same piece of
error-processing code, couldn't enable_language(OPTIONAL) immediately
set an internal variable which is honored by that error-processing
code to turn all further errors into warnings? Then the last thing
enable_language(OPTIONAL) should do is unset that variable (so all
further errors are treated as errors) before returning control to the
logic that called enable_language(OPTIONAL).

Of course, this idea depends on the assumption that all CMake errors
are handled by the same piece of error-processing code, but if that is
true this fix should be extremely easy to implement.

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-developers mailing list