[CMake] OS X Fortran flags

Brad King brad.king at kitware.com
Mon Oct 27 09:17:19 EDT 2014


On 10/24/2014 04:29 PM, Bill Somerville wrote:
> Sorry, I am struggling with this. I have copied the 
> Darwin-GNU-Fortran.cmake file into my project modules directory and 
> patched it as you suggested.

Sorry, I meant the Modules directory of your CMake installation.

> The good news is that it works when I patch the file in the actual CMake 
> installation

Great.  I've applied the patch here:

 OS X: Detect deployment target flags from GNU Fortran compilers
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4fc3367f

> although there is an oddity, when I configure the project I 
> see the messages from those two new function calls in the Fortran checks 
> but strangely I don't see similar messages from the C and C++ compiler 
> checks, yet they all seem to work adding the correct options.

The messages will only appear the first time CMake runs in a given
build tree.  After that the result is stored in a persistent location
to be re-used on future runs.  The C and C++ ones were probably already
cached.

-Brad



More information about the CMake mailing list