[CMake] fortran compiler failed to compile simple test program

Brad King brad.king at kitware.com
Tue Jun 16 10:08:02 EDT 2015


On 06/16/2015 10:00 AM, Ette, Anthony (CDS) wrote:
>> That shows it can be reproduced locally outside of CMake.
>> Please try dropping -rdynamic from that command line.
> 
> Ahh, you are correct.  Success!  What does this mean?

This means CMake needs to be able to define and detect an
id for this compiler so that it can know that -rdynamic
is not supported.  Currently the compiler looks like a GNU
compiler which does support the flags.

Even if a preprocessor symbol is not available CMake does
have other ways to detect the compiler id.  We need to be
able to run the compiler with just one flag that causes it
to print out some kind of identifying information but not
compile anything.  See here for some examples:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeDetermineFortranCompiler.cmake;hb=v3.3.0-rc2#l114

-Brad



More information about the CMake mailing list