[cmake-developers] Assembly/preprocessed targets for Fortran

Brad King brad.king at kitware.com
Wed Nov 5 11:26:26 EST 2014


On 11/04/2014 06:37 PM, Tim Gallagher wrote:
> I have attached the patch to enable the targets for Fortran.

Thanks.  Please update it to avoid using hard TABs for indentation.
Also in the CompileCommandOutput test hunk:

> -project (CompileCommandOutput CXX)
> +project (CompileCommandOutput)
> +enable_language(CXX)
> +enable_language(Fortran)

there are a couple problems:

- By removing any explicit languages from the project() call
  it will enable C and CXX by default.  Use NONE to suppress
  that.

- We cannot assume that Fortran will be available.  The other
  Fortran tests are all guarded by availability of a Fortran
  compiler.

The test for CMAKE_EXPORT_COMPILE_COMMANDS was already missing
for C, so let's just skip Fortran for the test too.  They can
be fixed together as a separate change later.

Thanks,
-Brad



More information about the cmake-developers mailing list