mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
a080914274
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)
10 lines
370 B
Plaintext
10 lines
370 B
Plaintext
CMake Error at NonValidTarget-Fortran_COMPILER_VERSION.cmake:1 \(add_custom_command\):
|
|
Error evaluating generator expression:
|
|
|
|
\$<Fortran_COMPILER_VERSION>
|
|
|
|
\$<Fortran_COMPILER_VERSION> may only be used with binary targets. It may
|
|
not be used with add_custom_command or add_custom_target.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|