adios2: add support for Fortran bindings (#7600)

This commit is contained in:
Michael Kuhn 2018-03-26 16:16:38 +02:00 committed by Massimiliano Culpo
parent 658896a7a5
commit 2a36c61d0f

View File

@ -60,6 +60,8 @@ class Adios2(CMakePackage):
# language bindings
variant('python', default=True,
description='Enable the Python >= 2.7 bindings')
variant('fortran', default=True,
description='Enable the Fortran bindings')
# requires mature C++11 implementations
conflicts('%gcc@:4.7')
@ -116,7 +118,9 @@ def cmake_args(self):
'-DADIOS2_USE_ADIOS1={0}'.format(
'ON' if '+adios1' in spec else 'OFF'),
'-DADIOS2_USE_Python={0}'.format(
'ON' if '+python' in spec else 'OFF')
'ON' if '+python' in spec else 'OFF'),
'-DADIOS2_USE_Fortran={0}'.format(
'ON' if '+fortran' in spec else 'OFF')
]
if spec.satisfies('+python'):
args.append('-DPYTHON_EXECUTABLE:FILEPATH=%s'