Skip to content
Snippets Groups Projects
Commit 298f5562 authored by Axel Huebl's avatar Axel Huebl Committed by Adam J. Stewart
Browse files

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).
parent ffd435ba
Branches
Tags
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment