projects
/
platform
/
upstream
/
cmake.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 3.24.3
[platform/upstream/cmake.git]
/
Tests
/
RunCMake
/
CheckSourceCompiles
/
CheckSourceCompilesFortran.cmake
1
2
3
enable_language (Fortran)
4
include(CheckSourceCompiles)
5
6
set(Fortran 1) # test that this is tolerated
7
8
check_source_compiles(Fortran [=[
9
PROGRAM TEST_HAVE_PRINT
10
PRINT *, 'Hello'
11
END
12
]=] SHOULD_BUILD)
13
14
if(NOT SHOULD_BUILD)
15
message(SEND_ERROR "Test fail for valid Fortran source.")
16
endif()