[Cmake-commits] [cmake-commits] king committed CMakeDetermineFortranCompiler.cmake 1.28 1.29
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Feb 2 07:21:40 EST 2010
Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv9607/Modules
Modified Files:
CMakeDetermineFortranCompiler.cmake
Log Message:
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.
Index: CMakeDetermineFortranCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeDetermineFortranCompiler.cmake,v
retrieving revision 1.28
retrieving revision 1.29
diff -C 2 -d -r1.28 -r1.29
*** CMakeDetermineFortranCompiler.cmake 10 Dec 2009 17:16:33 -0000 1.28
--- CMakeDetermineFortranCompiler.cmake 2 Feb 2010 12:21:36 -0000 1.29
***************
*** 163,166 ****
--- 163,171 ----
)
+ # 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.
SET(CMAKE_Fortran_COMPILER_ID)
More information about the Cmake-commits
mailing list