[CMake] OS X Fortran flags
Bill Somerville
bill at classdesign.com
Mon Oct 27 09:24:42 EDT 2014
On 27/10/2014 13:17, Brad King wrote:
Hi Brad,
> 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.
Nope, just checked again with a fresh build directory. The C & C++
compilers are clang so I am guessing that whatever does the compiler
tests for them doesn't print message about version & SDK choices.
No problem, it all seems to work fine with those changes.
Thanks again for the quick response.
>
> -Brad
>
Regards
Bill.
More information about the CMake
mailing list