dfelibs: add Boost as a testing dependency (#45133)

In my enthusiasm to add dfelibs to Spack, I didn't realise that the
unit tests of dfelibs use Boost and, as such, Boost is required as a
testing dependency.
This commit is contained in:
Stephen Nicholas Swatman 2024-07-10 14:32:45 +02:00 committed by GitHub
parent 9001e9328a
commit 5f234e16d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,3 +20,12 @@ class Dfelibs(CMakePackage):
version("20211029", sha256="65b8d536b06b550e38822905dea06d193beb703fe0e4442791f43dc087c5cbfb")
depends_on("cmake@3.8:", type="build")
depends_on("boost@1.59:", type="test")
def cmake_args(self):
args = [
self.define("dfelibs_BUILD_EXAMPLES", False),
self.define("dfelibs_BUILD_UNITTESTS", self.run_tests),
]
return args