summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index 72b147cddd..37cdecc586 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -93,6 +93,7 @@ class Warpx(CMakePackage):
args = [
'-DBUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF'),
+ '-DCMAKE_INSTALL_LIBDIR=lib',
# variants
'-DWarpX_APP:BOOL={0}'.format(
'ON' if '+app' in spec else 'OFF'),
@@ -123,3 +124,12 @@ class Warpx(CMakePackage):
]
return args
+
+ @property
+ def libs(self):
+ libsuffix = {'2': '2d', '3': '3d', 'rz': 'rz'}
+ dims = self.spec.variants['dims'].value
+ return find_libraries(
+ ['libwarpx.' + libsuffix[dims]], root=self.prefix, recursive=True,
+ shared=True
+ )