[cmake-developers] Fortran detection, issue 9220

Ben Boeckel ben.boeckel at kitware.com
Tue Feb 10 22:38:11 EST 2015


On Tue, Feb 10, 2015 at 17:15:33 -0800, Alan W. Irwin wrote:
> As the originator (almost 6 years ago) of this bug report I am still
> very much interested in a fundamental solution to give a WARNING
> message rather than an error if there is any issue with a compiler.

This patch makes it only an error when Ninja detects a Fortran compiler
rule being written (which is where the actual incompatibility lies).

Other languages error out because CMake doesn't have *any* knowledge of
how to build them. Java is kinda-sorta there IIRC. I haven't used it
much, but I don't remember it feeling first-class.

> That capability is fundamentally important for projects like PLplot
> that support more than one different compiled computer language
> (PLplot supports the compiled languages Ada, C, C++, Fortran, D, and
> Java)

You might be interested in the first-class D support here where I've
been dabbling in some personal projects:

    https://github.com/trentforkert/cmake

Other languages would need similar efforts to be fully supported. That
said, putting logic behind enable_language(OPTIONAL) would be nice.

--Ben


More information about the cmake-developers mailing list