diff options
-rw-r--r-- | var/spack/repos/builtin/packages/cpu-features/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cpu-features/package.py b/var/spack/repos/builtin/packages/cpu-features/package.py index 35a0fecc75..37b607fa40 100644 --- a/var/spack/repos/builtin/packages/cpu-features/package.py +++ b/var/spack/repos/builtin/packages/cpu-features/package.py @@ -17,8 +17,11 @@ class CpuFeatures(CMakePackage): version("0.7.0", tag="v0.7.0") + variant("shared", description="Build shared libraries", default=False) + depends_on("cmake@3.0.0:", type="build") def cmake_args(self): args = ["-DBUILD_TESTING:BOOL=OFF"] + args += self.enable_or_disable("BUILD_SHARED_LIBS", variant="shared") return args |