From f611406fe9045e2861ccc8a9fd8b9daa39982553 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 17 Feb 2015 13:37:23 -0500 Subject: [PATCH] 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. --- Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt b/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt index 3a2bdebd6..02e466887 100644 --- a/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt +++ b/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt @@ -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()