Recognize the Compaq Fortran compiler
The compiler documents symbols _DF_VERSION_ and _VF_VERSION_ but they do not seem to be available to the preprocessor. Instead we add a vendor query table entry for Compaq. Running "f90 -what" produces Compaq Visual Fortran Optimizing Compiler Version ... This clearly identifies the compiler.
This commit is contained in:
parent
ccb9053a4e
commit
11dcef910a
@ -162,6 +162,11 @@ IF(NOT CMAKE_Fortran_COMPILER_ID_RUN)
|
|||||||
"-fpp"
|
"-fpp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Table of per-vendor compiler id flags with expected output.
|
||||||
|
LIST(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS Compaq)
|
||||||
|
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_Compaq "-what")
|
||||||
|
SET(CMAKE_Fortran_COMPILER_ID_VENDOR_REGEX_Compaq "Compaq Visual Fortran")
|
||||||
|
|
||||||
# Try to identify the compiler.
|
# Try to identify the compiler.
|
||||||
SET(CMAKE_Fortran_COMPILER_ID)
|
SET(CMAKE_Fortran_COMPILER_ID)
|
||||||
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
INCLUDE(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user