[CMake] CC, CXX (& Fortran) compiler version - CMake macros wanted
Ilias Miroslav
Miroslav.Ilias at umb.sk
Tue Dec 11 16:20:45 EST 2012
Dear CMake experts,
I appreciate your efforts resulting into the introduction of the CMAKE_[C|CXX]_COMPILER_VERSION variables from CMake version 2.8.10
( http://www.cmake.org/pipermail/cmake/2012-January/048596.html ).
However, I would need also the CMAKE_Fortran_COMPILER_VERSION variable. Likewise we are working with older versions of CMake.
For that reason I was searching for macros setting CMAKE_C_COMPILER_VERSION, but found none:
milias at ......fpv.umb.sk:~/work/programming/cmake_2.8.10.2/cmake-2.8.10.2/.grep CMAKE_C_COMPILER_VERSION * */* */*/*
Modules/CMakeCCompiler.cmake.in:set(CMAKE_C_COMPILER_VERSION "@CMAKE_C_COMPILER_VERSION@")
Modules/GenerateExportHeader.cmake: elseif(CMAKE_COMPILER_IS_GNUC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "4.2")
Modules/Platform/Windows-MSVC.cmake: if(CMAKE_C_COMPILER_VERSION)
Modules/Platform/Windows-MSVC.cmake: set(_compiler_version ${CMAKE_C_COMPILER_VERSION})
Modules/Platform/Windows-wcl386.cmake: if(CMAKE_C_COMPILER_VERSION)
Modules/Platform/Windows-wcl386.cmake: set(_compiler_version ${CMAKE_C_COMPILER_VERSION})
Tests/SystemInformation/SystemInformation.in:CMAKE_C_COMPILER_VERSION == "${CMAKE_C_COMPILER_VERSION}"
Would it be possible to distribute also CMake source files which are setting the MAKE_[C|CXX]_COMPILER_VERSION variables ? I would like to use them as template for setting the CMAKE_Fortran_COMPILER_VERSION variable.
Best, Miro
More information about the CMake
mailing list