variorum: needs jansson (#28754)

This commit is contained in:
eugeneswalker 2022-02-03 10:45:19 -08:00 committed by GitHub
parent 5208fcf1ea
commit 48b2cf54cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ class Variorum(CMakePackage):
########################
depends_on("cmake@2.8:", type="build")
depends_on("hwloc")
depends_on("jansson", type="link")
#########################
# Documentation related #
@ -51,6 +52,8 @@ def cmake_args(self):
spec = self.spec
cmake_args = []
cmake_args.append('-DJANSSON_DIR={0}'.format(spec['jansson'].prefix))
if "+shared" in spec:
cmake_args.append("-DBUILD_SHARED_LIBS=ON")
else: