Sign in
fuchsia
/
third_party
/
github.com
/
Kitware
/
CMake
/
aebdd9ff2cba50f8ace3cb1784dd04582019cc40
/
.
/
Tests
/
RunCMake
/
CheckSourceCompiles
/
CheckFortranSourceCompiles.cmake
blob: 1d4e16d45d070d94661fdf1d5cb1127962ac4bd8 [
file
] [
log
] [
blame
]
enable_language
(
Fortran
)
include
(
CheckSourceCompiles
)
check_source_compiles
(
Fortran
[=[
PROGRAM TEST_HAVE_PRINT
PRINT
*,
'Hello'
END
]=]
SHOULD_BUILD
)
if
(
NOT SHOULD_BUILD
)
message
(
SEND_ERROR
"Test fail for valid Fortran source."
)
endif
()