diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py index 7521e8411f..d19f429421 100644 --- a/var/spack/repos/builtin/packages/amrex/package.py +++ b/var/spack/repos/builtin/packages/amrex/package.py @@ -61,7 +61,7 @@ def cmake_args(self): spec = self.spec cmake_args = [ - '-DENABLE_POSITION_INDEPENDENT_CODE=ON', + '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON', '-DBL_SPACEDIM:INT=%d' % int(spec.variants['dims'].value), '-DBL_PRECISION:STRING=%s' % spec.variants['prec'].value, '-DENABLE_FMG=%s' % ('+fortran' in spec), diff --git a/var/spack/repos/builtin/packages/boxlib/package.py b/var/spack/repos/builtin/packages/boxlib/package.py index 3dff87517f..9546d28f53 100644 --- a/var/spack/repos/builtin/packages/boxlib/package.py +++ b/var/spack/repos/builtin/packages/boxlib/package.py @@ -49,7 +49,7 @@ def cmake_args(self): options.extend([ '-DBL_SPACEDIM=%d' % int(spec.variants['dims'].value), - '-DENABLE_POSITION_INDEPENDENT_CODE=ON', + '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON', '-DENABLE_FBASELIB=ON', '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx,