Correcting position independent code setting for boxlib and amrex. (#8537)
This commit is contained in:
parent
645c640f38
commit
9f22bb61ac
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue