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
No related branches found
No related tags found
No related merge requests found
...@@ -97,24 +97,24 @@ def cmake_args(self): ...@@ -97,24 +97,24 @@ def cmake_args(self):
spec = self.spec spec = self.spec
args = [ args = [
'-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format(( '-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF')), 'ON' if '+shared' in spec else 'OFF'),
'-DADIOS2_BUILD_TESTING=OFF', '-DADIOS2_BUILD_TESTING=OFF',
'-DADIOS2_USE_MPI={0}'.format(( '-DADIOS2_USE_MPI={0}'.format(
'ON' if '+mpi' in spec else 'OFF')), 'ON' if '+mpi' in spec else 'OFF'),
'-DADIOS2_USE_BZip2={0}'.format(( '-DADIOS2_USE_BZip2={0}'.format(
'ON' if '+bzip2' in spec else 'OFF')), 'ON' if '+bzip2' in spec else 'OFF'),
'-DADIOS2_USE_ZFP={0}'.format(( '-DADIOS2_USE_ZFP={0}'.format(
'ON' if '+zfp' in spec else 'OFF')), 'ON' if '+zfp' in spec else 'OFF'),
'-DADIOS2_USE_DataMan={0}'.format(( '-DADIOS2_USE_DataMan={0}'.format(
'ON' if '+dataman' in spec else 'OFF')), 'ON' if '+dataman' in spec else 'OFF'),
'-DADIOS2_USE_ZeroMQ={0}'.format(( '-DADIOS2_USE_ZeroMQ={0}'.format(
'ON' if '+dataman' in spec else 'OFF')), 'ON' if '+dataman' in spec else 'OFF'),
'-DADIOS2_USE_HDF5={0}'.format(( '-DADIOS2_USE_HDF5={0}'.format(
'ON' if '+hdf5' in spec else 'OFF')), 'ON' if '+hdf5' in spec else 'OFF'),
'-DADIOS2_USE_ADIOS1={0}'.format(( '-DADIOS2_USE_ADIOS1={0}'.format(
'ON' if '+adios1' in spec else 'OFF')), 'ON' if '+adios1' in spec else 'OFF'),
'-DADIOS2_USE_Python={0}'.format(( '-DADIOS2_USE_Python={0}'.format(
'ON' if '+python' in spec else 'OFF')) 'ON' if '+python' in spec else 'OFF')
] ]
return args return args
...@@ -63,13 +63,13 @@ def cmake_args(self): ...@@ -63,13 +63,13 @@ def cmake_args(self):
'-DGEARSHIFFT_CLFFT:BOOL=OFF' '-DGEARSHIFFT_CLFFT:BOOL=OFF'
] ]
args.extend([ args.extend([
'-DGEARSHIFFT_FFTW:BOOL={0}'.format(( '-DGEARSHIFFT_FFTW:BOOL={0}'.format(
'ON' if '+fftw' in spec else 'OFF')), 'ON' if '+fftw' in spec else 'OFF'),
'-DGEARSHIFFT_FFTW_OPENMP:BOOL={0}'.format(( '-DGEARSHIFFT_FFTW_OPENMP:BOOL={0}'.format(
'ON' if '+openmp' in spec else 'OFF')), 'ON' if '+openmp' in spec else 'OFF'),
'-DGEARSHIFFT_CUFFT:BOOL={0}'.format(( '-DGEARSHIFFT_CUFFT:BOOL={0}'.format(
'ON' if '+cufft' in spec else 'OFF')), 'ON' if '+cufft' in spec else 'OFF'),
'-DGEARSHIFFT_CLFFT:BOOL={0}'.format(( '-DGEARSHIFFT_CLFFT:BOOL={0}'.format(
'ON' if '+clfft' in spec else 'OFF')) 'ON' if '+clfft' in spec else 'OFF')
]) ])
return args return args
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment