diff options
-rw-r--r-- | var/spack/repos/builtin/packages/parallel-hashmap/package.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/parallel-hashmap/package.py b/var/spack/repos/builtin/packages/parallel-hashmap/package.py index 27d8f6b1ab..f402ef6d28 100644 --- a/var/spack/repos/builtin/packages/parallel-hashmap/package.py +++ b/var/spack/repos/builtin/packages/parallel-hashmap/package.py @@ -15,10 +15,20 @@ class ParallelHashmap(CMakePackage): license("Apache-2.0") + version("1.3.12", sha256="0cc203144321924cfbfcc401f42d8204c0dd24e2760c7a1c091baa16d9777c08") version("1.3.11", sha256="0515a681bfb24207013786a7737e9d8561302e656689d8a65ea480bbabab460f") - depends_on("cxx", type="build") # generated + variant("examples", description="Build examples", default=False) + depends_on("cxx", type="build") depends_on("cmake@3.8:", type="build") patch("pthread.patch") + + def cmake_args(self): + args = [ + self.define_from_variant("PHMAP_BUILD_EXAMPLES", "examples"), + self.define("PHMAP_BUILD_TESTS", False), # disable due to vendored gtest + ] + + return args |