summaryrefslogtreecommitdiffstats
path: root/Tests/Fortran/CMakeLists.txt
blob: a7b50425993757cfe36b48cce914c0ccef23d9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PROJECT(testf Fortran)
MESSAGE("ENV_FLAGS = $ENV{FFLAGS}")
MESSAGE("CMAKE_Fortran_COMPILER_INIT = ${CMAKE_Fortran_COMPILER_INIT}")
MESSAGE("CMAKE_Fortran_COMPILER_FULLPATH = ${CMAKE_Fortran_COMPILER_FULLPATH}")
MESSAGE("CMAKE_Fortran_COMPILER = ${CMAKE_Fortran_COMPILER}")
MESSAGE("CMAKE_Fortran_FLAGS = ${CMAKE_Fortran_FLAGS}")
MESSAGE("All cmake variables:")
GET_CMAKE_PROPERTY(res VARIABLES)
FOREACH(var ${res})
  MESSAGE("${var}=\"${${var}}\"\n")
ENDFOREACH(var ${res})
ADD_EXECUTABLE(testf hello.f)