diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-17 16:45:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-25 14:57:06 (GMT) |
commit | 3c4cc77d55df5bd61cbf62a75fcaf6b9c4509cc7 (patch) | |
tree | 65816b90f804153df56ddc8a11a596d8eb76772f /Tests | |
parent | 2770d5c202c7e670203e34bd0c9eddf02abf5bd3 (diff) | |
download | CMake-3c4cc77d55df5bd61cbf62a75fcaf6b9c4509cc7.zip CMake-3c4cc77d55df5bd61cbf62a75fcaf6b9c4509cc7.tar.gz CMake-3c4cc77d55df5bd61cbf62a75fcaf6b9c4509cc7.tar.bz2 |
Tests: Extend Fortran compiler information
Fill variable `CMake_Fortran_COMPILER_ID`.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CheckFortran.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CheckFortran.cmake b/Tests/CheckFortran.cmake index 16a8ed2..33e1bfb 100644 --- a/Tests/CheckFortran.cmake +++ b/Tests/CheckFortran.cmake @@ -11,6 +11,7 @@ if(NOT DEFINED CMAKE_Fortran_COMPILER) project(CheckFortran Fortran) file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" \"set(CMAKE_Fortran_COMPILER \\\"\${CMAKE_Fortran_COMPILER}\\\")\\n\" + \"set(CMAKE_Fortran_COMPILER_ID \\\"\${CMAKE_Fortran_COMPILER_ID}\\\")\\n\" \"set(CMAKE_Fortran_FLAGS \\\"\${CMAKE_Fortran_FLAGS}\\\")\\n\" \"set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 \\\"\${CMAKE_Fortran_COMPILER_SUPPORTS_F90}\\\")\\n\" ) @@ -45,6 +46,8 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\" message(STATUS "${_desc} - ${CMAKE_Fortran_COMPILER}") set(CMAKE_Fortran_COMPILER "${CMAKE_Fortran_COMPILER}" CACHE FILEPATH "Fortran compiler") mark_as_advanced(CMAKE_Fortran_COMPILER) + set(CMAKE_Fortran_COMPILER_ID "${CMAKE_Fortran_COMPILER_ID}" CACHE STRING "Fortran compiler Id") + mark_as_advanced(CMAKE_Fortran_COMPILER_ID) set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}" CACHE STRING "Fortran flags") mark_as_advanced(CMAKE_Fortran_FLAGS) set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 "${CMAKE_Fortran_COMPILER_SUPPORTS_F90}" CACHE BOOL "Fortran compiler supports F90") |