Fortran: Add compiler ID/Version generator expressions

Adds `Fortran_COMPILER_ID` and `Fortran_COMPILER_VERSION` generator
expression support to match equivalent `C_COMPILER_ID`,
`CXX_COMPILER_ID`, `C_COMPILER_VERSION`, and `CXX_COMPILER_VERSION`
support.

This is very helpful in the case where the C/C++ compiler suite is a
different type of compiler from the platform Fortran compiler and
projects use generator expressions to assign compiler flags and
definitions.  (e.g. `GNU` C/C++ and `SunPro` Fortran on Linux)
This commit is contained in:
Andrew Paprocki
2019-01-14 09:12:38 -05:00
committed by Brad King
parent a61c061b61
commit a080914274
14 changed files with 127 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
Fortran_COMPILER_ID
-------------------
* The ``$<Fortran_COMPILER_ID:...>`` and ``$<Fortran_COMPILER_VERSION:...>``
:manual:`generator expressions <cmake-generator-expressions(7)>` were added.