Skip to content
Snippets Groups Projects
Commit 257d2358 authored by Axel Huebl's avatar Axel Huebl Committed by Massimiliano Culpo
Browse files

Cleanup: Remove Dbl Brackets (#6848)

Remove unnecessary double brackets in ADIOS2 and gearshifft packages.
parent 747dbcb8
Branches
Tags
No related merge requests found
......@@ -97,24 +97,24 @@ def cmake_args(self):
spec = self.spec
args = [
'-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format((
'ON' if '+shared' in spec else 'OFF')),
'-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF'),
'-DADIOS2_BUILD_TESTING=OFF',
'-DADIOS2_USE_MPI={0}'.format((
'ON' if '+mpi' in spec else 'OFF')),
'-DADIOS2_USE_BZip2={0}'.format((
'ON' if '+bzip2' in spec else 'OFF')),
'-DADIOS2_USE_ZFP={0}'.format((
'ON' if '+zfp' in spec else 'OFF')),
'-DADIOS2_USE_DataMan={0}'.format((
'ON' if '+dataman' in spec else 'OFF')),
'-DADIOS2_USE_ZeroMQ={0}'.format((
'ON' if '+dataman' in spec else 'OFF')),
'-DADIOS2_USE_HDF5={0}'.format((
'ON' if '+hdf5' in spec else 'OFF')),
'-DADIOS2_USE_ADIOS1={0}'.format((
'ON' if '+adios1' in spec else 'OFF')),
'-DADIOS2_USE_Python={0}'.format((
'ON' if '+python' in spec else 'OFF'))
'-DADIOS2_USE_MPI={0}'.format(
'ON' if '+mpi' in spec else 'OFF'),
'-DADIOS2_USE_BZip2={0}'.format(
'ON' if '+bzip2' in spec else 'OFF'),
'-DADIOS2_USE_ZFP={0}'.format(
'ON' if '+zfp' in spec else 'OFF'),
'-DADIOS2_USE_DataMan={0}'.format(
'ON' if '+dataman' in spec else 'OFF'),
'-DADIOS2_USE_ZeroMQ={0}'.format(
'ON' if '+dataman' in spec else 'OFF'),
'-DADIOS2_USE_HDF5={0}'.format(
'ON' if '+hdf5' in spec else 'OFF'),
'-DADIOS2_USE_ADIOS1={0}'.format(
'ON' if '+adios1' in spec else 'OFF'),
'-DADIOS2_USE_Python={0}'.format(
'ON' if '+python' in spec else 'OFF')
]
return args
......@@ -63,13 +63,13 @@ def cmake_args(self):
'-DGEARSHIFFT_CLFFT:BOOL=OFF'
]
args.extend([
'-DGEARSHIFFT_FFTW:BOOL={0}'.format((
'ON' if '+fftw' in spec else 'OFF')),
'-DGEARSHIFFT_FFTW_OPENMP:BOOL={0}'.format((
'ON' if '+openmp' in spec else 'OFF')),
'-DGEARSHIFFT_CUFFT:BOOL={0}'.format((
'ON' if '+cufft' in spec else 'OFF')),
'-DGEARSHIFFT_CLFFT:BOOL={0}'.format((
'ON' if '+clfft' in spec else 'OFF'))
'-DGEARSHIFFT_FFTW:BOOL={0}'.format(
'ON' if '+fftw' in spec else 'OFF'),
'-DGEARSHIFFT_FFTW_OPENMP:BOOL={0}'.format(
'ON' if '+openmp' in spec else 'OFF'),
'-DGEARSHIFFT_CUFFT:BOOL={0}'.format(
'ON' if '+cufft' in spec else 'OFF'),
'-DGEARSHIFFT_CLFFT:BOOL={0}'.format(
'ON' if '+clfft' in spec else 'OFF')
])
return args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment