summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/amrex/package.py2
-rw-r--r--var/spack/repos/builtin/packages/boxlib/package.py2
2 files changed, 2 insertions, 2 deletions
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 @@ class Amrex(CMakePackage):
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 @@ class Boxlib(CMakePackage):
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,