2012-08-21 21:30:50 +04:00
|
|
|
cmake_minimum_required(VERSION 2.8.9)
|
|
|
|
project(CompilerIdFortran Fortran)
|
|
|
|
|
|
|
|
foreach(v
|
|
|
|
CMAKE_Fortran_COMPILER
|
|
|
|
CMAKE_Fortran_COMPILER_ID
|
|
|
|
CMAKE_Fortran_COMPILER_VERSION
|
|
|
|
)
|
|
|
|
if(${v})
|
|
|
|
message(STATUS "${v}=[${${v}}]")
|
|
|
|
else()
|
2015-02-17 21:37:23 +03:00
|
|
|
message(SEND_ERROR "${v} not set!")
|
2012-08-21 21:30:50 +04:00
|
|
|
endif()
|
|
|
|
endforeach()
|