summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-17 18:37:23 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-19 14:26:28 (GMT)
commitf611406fe9045e2861ccc8a9fd8b9daa39982553 (patch)
treee72723e782855977f09389bb120143262e2192d8 /Tests
parentc6e1f4647576801b27fbb25652fe3e947564be27 (diff)
downloadCMake-f611406fe9045e2861ccc8a9fd8b9daa39982553.zip
CMake-f611406fe9045e2861ccc8a9fd8b9daa39982553.tar.gz
CMake-f611406fe9045e2861ccc8a9fd8b9daa39982553.tar.bz2
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.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt10
1 files changed, 1 insertions, 9 deletions
diff --git a/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt b/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt
index 3a2bdeb..02e4668 100644
--- a/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt
+++ b/Tests/CMakeOnly/CompilerIdFortran/CMakeLists.txt
@@ -4,19 +4,11 @@ project(CompilerIdFortran Fortran)
foreach(v
CMAKE_Fortran_COMPILER
CMAKE_Fortran_COMPILER_ID
- )
- if(${v})
- message(STATUS "${v}=[${${v}}]")
- else()
- 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!")
+ message(SEND_ERROR "${v} not set!")
endif()
endforeach()