Cleanup: Remove Dbl Brackets (#6848)

Remove unnecessary double brackets in ADIOS2 and gearshifft packages.
This commit is contained in:
Axel Huebl 2018-01-08 19:42:51 +01:00 committed by Massimiliano Culpo
parent 747dbcb82b
commit 257d23581c
2 changed files with 26 additions and 26 deletions

View File

@ -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

View File

@ -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