diff --git a/var/spack/repos/builtin/packages/dakota/package.py b/var/spack/repos/builtin/packages/dakota/package.py index bd73d94009..64f6a5b59a 100644 --- a/var/spack/repos/builtin/packages/dakota/package.py +++ b/var/spack/repos/builtin/packages/dakota/package.py @@ -68,4 +68,7 @@ def cmake_args(self): ] ) + if self.run_tests: + args += ["-DCMAKE_CTEST_ARGUMENTS=-L;Accept"] + return args