Add support for Concurrent Fortran 77 Compiler
The Concurrent Fortran compiler (ccur.com) is available on Linux and can be used much like the GNU Fortran compiler. Currently it has no preprocessor symbols to identify it so we need to detect it by matching compiler output. Suggested-by: Anthony Ette <Anthony.R.Ette@controlsdata.com>
This commit is contained in:
parent
0d204c1c1d
commit
7cd539b163
|
@ -11,6 +11,7 @@ include:
|
||||||
Absoft = Absoft Fortran (absoft.com)
|
Absoft = Absoft Fortran (absoft.com)
|
||||||
ADSP = Analog VisualDSP++ (analog.com)
|
ADSP = Analog VisualDSP++ (analog.com)
|
||||||
AppleClang = Apple Clang (apple.com)
|
AppleClang = Apple Clang (apple.com)
|
||||||
|
CCur = Concurrent Fortran (ccur.com)
|
||||||
Clang = LLVM Clang (clang.llvm.org)
|
Clang = LLVM Clang (clang.llvm.org)
|
||||||
Cray = Cray Compiler (cray.com)
|
Cray = Cray Compiler (cray.com)
|
||||||
Embarcadero, Borland = Embarcadero (embarcadero.com)
|
Embarcadero, Borland = Embarcadero (embarcadero.com)
|
||||||
|
|
|
@ -98,7 +98,10 @@ else()
|
||||||
# Each entry in this list is a set of extra flags to try
|
# Each entry in this list is a set of extra flags to try
|
||||||
# adding to the compile line to see if it helps produce
|
# adding to the compile line to see if it helps produce
|
||||||
# a valid identification executable.
|
# a valid identification executable.
|
||||||
set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS_FIRST)
|
set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS_FIRST
|
||||||
|
# Get verbose output to help distinguish compilers.
|
||||||
|
"-v"
|
||||||
|
)
|
||||||
set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS
|
set(CMAKE_Fortran_COMPILER_ID_TEST_FLAGS
|
||||||
# Try compiling to an object file only.
|
# Try compiling to an object file only.
|
||||||
"-c"
|
"-c"
|
||||||
|
@ -112,6 +115,10 @@ endif()
|
||||||
if(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
if(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
||||||
set(CMAKE_Fortran_COMPILER_ID_RUN 1)
|
set(CMAKE_Fortran_COMPILER_ID_RUN 1)
|
||||||
|
|
||||||
|
# Table of per-vendor compiler output regular expressions.
|
||||||
|
list(APPEND CMAKE_Fortran_COMPILER_ID_MATCH_VENDORS CCur)
|
||||||
|
set(CMAKE_Fortran_COMPILER_ID_MATCH_VENDOR_REGEX_CCur "Concurrent Fortran [0-9]+ Compiler")
|
||||||
|
|
||||||
# Table of per-vendor compiler id flags with expected output.
|
# Table of per-vendor compiler id flags with expected output.
|
||||||
list(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS Compaq)
|
list(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS Compaq)
|
||||||
set(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_Compaq "-what")
|
set(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_Compaq "-what")
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
include(Compiler/GNU-Fortran)
|
|
@ -0,0 +1 @@
|
||||||
|
include(Platform/Linux-GNU-Fortran)
|
Loading…
Reference in New Issue