Correcting position independent code setting for boxlib and amrex. (#8537)

This commit is contained in:
Jon Rood 2018-06-21 15:37:10 -06:00 committed by Adam J. Stewart
parent 645c640f38
commit 9f22bb61ac
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ def cmake_args(self):
spec = self.spec spec = self.spec
cmake_args = [ cmake_args = [
'-DENABLE_POSITION_INDEPENDENT_CODE=ON', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON',
'-DBL_SPACEDIM:INT=%d' % int(spec.variants['dims'].value), '-DBL_SPACEDIM:INT=%d' % int(spec.variants['dims'].value),
'-DBL_PRECISION:STRING=%s' % spec.variants['prec'].value, '-DBL_PRECISION:STRING=%s' % spec.variants['prec'].value,
'-DENABLE_FMG=%s' % ('+fortran' in spec), '-DENABLE_FMG=%s' % ('+fortran' in spec),

View file

@ -49,7 +49,7 @@ def cmake_args(self):
options.extend([ options.extend([
'-DBL_SPACEDIM=%d' % int(spec.variants['dims'].value), '-DBL_SPACEDIM=%d' % int(spec.variants['dims'].value),
'-DENABLE_POSITION_INDEPENDENT_CODE=ON', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON',
'-DENABLE_FBASELIB=ON', '-DENABLE_FBASELIB=ON',
'-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc,
'-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx, '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,