Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Podhorszki, Norbert
ADIOS2
Commits
7253ccb6
Commit
7253ccb6
authored
Mar 06, 2020
by
Brad King
Browse files
cmake: Add macro to check for Fortran submodules support
parent
e131887a
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/ADIOSFunctions.cmake
View file @
7253ccb6
...
...
@@ -199,3 +199,29 @@ function(SetupTestPipeline basename pipeline do_setup)
endforeach
()
endfunction
()
macro
(
adios2_check_fortran_submodules var
)
include
(
CheckFortranSourceCompiles
)
CHECK_Fortran_SOURCE_COMPILES
(
[[
module foo
interface bar
module subroutine bar_integer(x)
integer, intent(in) :: x
end subroutine
module subroutine bar_real(x)
real, intent(in) :: x
end subroutine
end interface
end module
submodule ( foo ) sub
contains
module subroutine bar_integer(x)
integer, intent(in) :: x
end subroutine
module subroutine bar_real(x)
real, intent(in) :: x
end subroutine
end submodule
program main
end program
]]
${
var
}
SRC_EXT F90
)
endmacro
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment