summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJon Rood <jon.rood@nrel.gov>2018-06-21 15:37:10 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-21 16:37:10 -0500
commit9f22bb61acc750ccf11a17979eb98851aed285ce (patch)
tree1c47891b950c3855aa81c9d22bb6168c4594fe9f /var
parent645c640f38ae67008eb18c79301e19ddfd39c041 (diff)
downloadspack-9f22bb61acc750ccf11a17979eb98851aed285ce.tar.gz
spack-9f22bb61acc750ccf11a17979eb98851aed285ce.tar.bz2
spack-9f22bb61acc750ccf11a17979eb98851aed285ce.tar.xz
spack-9f22bb61acc750ccf11a17979eb98851aed285ce.zip
Correcting position independent code setting for boxlib and amrex. (#8537)
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,