summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0129/Fortran.cmake
blob: abaca7e19a782225a73007a8e5f46d9c4a4f94d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include(CheckLanguage)
check_language(Fortran)
if(NOT CMAKE_Fortran_COMPILER)
  # No Fortran compiler, skipping Fortran test
  return()
endif()

if(SET_CMP0129)
  cmake_policy(SET CMP0129 ${SET_CMP0129})
endif()

enable_language(Fortran)
set(CMAKE_VERBOSE_MAKEFILE TRUE)
include(CompareCompilerVersion.cmake)
compare_compiler_version(Fortran)