Fortran: Test that CMAKE_Fortran_COMPILER_VERSION is set (#15372)

Update the CMakeOnly.CompilerIdFortran test to require that the variable
is set instead of just warning.  We already require it for C and CXX.
This commit is contained in:
Brad King 2015-02-17 13:37:23 -05:00
parent c6e1f46475
commit f611406fe9
1 changed files with 1 additions and 9 deletions

View File

@ -4,6 +4,7 @@ project(CompilerIdFortran Fortran)
foreach(v
CMAKE_Fortran_COMPILER
CMAKE_Fortran_COMPILER_ID
CMAKE_Fortran_COMPILER_VERSION
)
if(${v})
message(STATUS "${v}=[${${v}}]")
@ -11,12 +12,3 @@ foreach(v
message(SEND_ERROR "${v} not set!")
endif()
endforeach()
foreach(v
CMAKE_Fortran_COMPILER_VERSION
)
if(${v})
message(STATUS "${v}=[${${v}}]")
else()
message(WARNING "${v} not set!")
endif()
endforeach()