[cmake-developers] Assembly/preprocessed targets for Fortran
Brad King
brad.king at kitware.com
Wed Nov 5 14:19:06 EST 2014
On 11/05/2014 01:53 PM, Tim Gallagher wrote:
> Here's to hoping 3rd time's the charm...
Thanks. Applied with minor tweaks:
Makefile: Refactor checks for lang-specific targets and export compile cmds
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=06f8b429
Makefile: Add assembly and preprocessed targets for Fortran
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a811f014
and merged to 'next' for testing.
> Also, what version of gfortran do you have that requires both -E
> and -cpp to do the preprocessing?
It is gfortran 4.9.1.
Many other compilers have this too. Uppercase source extensions
get preprocessed by default, lowercase extensions require -cpp.
That is why Modules/CMakeFortranCompilerId.F.in uses an uppercase
extension.
-Brad
More information about the cmake-developers
mailing list