summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-09 22:11:18 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-09 22:51:47 (GMT)
commit24cc3d48174ef7b120491520ceb9f81389dd6b3e (patch)
tree1b4629081fa52068a6ddca0c38308573c5b0c871
parent83892c4a1170bf68a1e5da305899a23eb69a7500 (diff)
downloadCMake-24cc3d48174ef7b120491520ceb9f81389dd6b3e.zip
CMake-24cc3d48174ef7b120491520ceb9f81389dd6b3e.tar.gz
CMake-24cc3d48174ef7b120491520ceb9f81389dd6b3e.tar.bz2
Recognize the NAG Fortran compiler
The Numerical Algorithms Group (NAG) Fortran compiler does not document a preprocessor macro to identify it. Check for identifying output using the -V option.
-rw-r--r--Modules/CMakeDetermineFortranCompiler.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake
index 03ddd78..3801d7d 100644
--- a/Modules/CMakeDetermineFortranCompiler.cmake
+++ b/Modules/CMakeDetermineFortranCompiler.cmake
@@ -169,6 +169,9 @@ IF(NOT CMAKE_Fortran_COMPILER_ID_RUN)
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")
+ LIST(APPEND CMAKE_Fortran_COMPILER_ID_VENDORS NAG) # Numerical Algorithms Group
+ SET(CMAKE_Fortran_COMPILER_ID_VENDOR_FLAGS_NAG "-V")
+ SET(CMAKE_Fortran_COMPILER_ID_VENDOR_REGEX_NAG "NAG Fortran Compiler")
# Try to identify the compiler.
SET(CMAKE_Fortran_COMPILER_ID)