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:
parent
c6e1f46475
commit
f611406fe9
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue