summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-01-08 16:14:38 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-08 09:14:38 -0600
commit298f5562c99ad3ad87da9e0df78bc25e95ce0c02 (patch)
treeab1530595c2765666b59b57924238ccd27857ae0 /var
parentffd435bad70bc3005e2d5b81e0119fa67c60db05 (diff)
downloadspack-298f5562c99ad3ad87da9e0df78bc25e95ce0c02.tar.gz
spack-298f5562c99ad3ad87da9e0df78bc25e95ce0c02.tar.bz2
spack-298f5562c99ad3ad87da9e0df78bc25e95ce0c02.tar.xz
spack-298f5562c99ad3ad87da9e0df78bc25e95ce0c02.zip
Rmlab: Control PNG (#6846)
Control the find_package of the PNG variant explicitly. This avoids picking up an "external" PNGwriter install in case `~png` is picked by changing the default "AUTO" search to explicit "ON" (required) of "OFF" (ignore if exists).
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/rmlab/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rmlab/package.py b/var/spack/repos/builtin/packages/rmlab/package.py
index 2fa927a1ac..d089393ab4 100644
--- a/var/spack/repos/builtin/packages/rmlab/package.py
+++ b/var/spack/repos/builtin/packages/rmlab/package.py
@@ -47,3 +47,12 @@ class Rmlab(CMakePackage):
conflicts('%pgi@:14')
depends_on('pngwriter@0.6.0:', when='+png')
+
+ def cmake_args(self):
+ spec = self.spec
+
+ args = [
+ '-DRmlab_USE_PNG={0}'.format(
+ 'ON' if '+png' in spec else 'OFF')
+ ]
+ return args