diff options
-rw-r--r-- | var/spack/repos/builtin/packages/compadre/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/compadre/package.py b/var/spack/repos/builtin/packages/compadre/package.py index 32af4e6c87..32e276ce55 100644 --- a/var/spack/repos/builtin/packages/compadre/package.py +++ b/var/spack/repos/builtin/packages/compadre/package.py @@ -31,6 +31,8 @@ class Compadre(CMakePackage): variant("mpi", default=False, description="Enable MPI support") depends_on("mpi", when="+mpi") + variant("tests", default=True, description="Enable tests and examples") + # fixes duplicate symbol issue with static library build patch( "https://patch-diff.githubusercontent.com/raw/sandialabs/Compadre/pull/286.patch?full_index=1", @@ -56,6 +58,10 @@ class Compadre(CMakePackage): if "+mpi" in spec: options.append("-DCompadre_USE_MPI:BOOL=ON") + if "~tests" in spec: + options.append("-DCompadre_EXAMPLES:BOOL=OFF") + options.append("-DCompadre_TESTS:BOOL=OFF") + if "+shared" in spec: options.append("-DBUILD_SHARED_LIBS:BOOL=ON") else: |