summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-22 18:09:52 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-22 18:52:00 (GMT)
commita41c8724d155f1cd74ce36cdfbd10da0eac5b389 (patch)
treedb55fbab204f225bae0d7eca98bc7da04cd8797b /Tests
parent1ec5097d4d15cfb2d24a8f23cb6accf38f870981 (diff)
downloadCMake-a41c8724d155f1cd74ce36cdfbd10da0eac5b389.zip
CMake-a41c8724d155f1cd74ce36cdfbd10da0eac5b389.tar.gz
CMake-a41c8724d155f1cd74ce36cdfbd10da0eac5b389.tar.bz2
Tests: Check if Fortran compiler supports F90
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CheckFortran.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CheckFortran.cmake b/Tests/CheckFortran.cmake
index ebbb426..678bb82 100644
--- a/Tests/CheckFortran.cmake
+++ b/Tests/CheckFortran.cmake
@@ -22,6 +22,7 @@ project(CheckFortran Fortran)
file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
\"set(CMAKE_Fortran_COMPILER \\\"\${CMAKE_Fortran_COMPILER}\\\")\\n\"
\"set(CMAKE_Fortran_FLAGS \\\"\${CMAKE_Fortran_FLAGS}\\\")\\n\"
+ \"set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 \\\"\${CMAKE_Fortran_COMPILER_SUPPORTS_F90}\\\")\\n\"
)
")
execute_process(
@@ -47,4 +48,6 @@ file(WRITE \"\${CMAKE_CURRENT_BINARY_DIR}/result.cmake\"
mark_as_advanced(CMAKE_Fortran_COMPILER)
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")
+ mark_as_advanced(CMAKE_Fortran_COMPILER_SUPPORTS_F90)
endif()