From 87978f7989b6f88a43324ea1617231b370ef52b4 Mon Sep 17 00:00:00 2001 From: Stephen McDowell Date: Sat, 18 Dec 2021 11:29:05 -0500 Subject: [PATCH] skip googletest and googlebenchmark for header only library (#28068) --- .../repos/builtin/packages/fxdiv/package.py | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/var/spack/repos/builtin/packages/fxdiv/package.py b/var/spack/repos/builtin/packages/fxdiv/package.py index daaaf2a211..ec9800fcae 100644 --- a/var/spack/repos/builtin/packages/fxdiv/package.py +++ b/var/spack/repos/builtin/packages/fxdiv/package.py @@ -23,25 +23,8 @@ class Fxdiv(CMakePackage): generator = 'Ninja' - resource( - name='googletest', - url='https://github.com/google/googletest/archive/release-1.10.0.zip', - sha256='94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91', - destination='deps', - placement='googletest', - ) - resource( - name='googlebenchmark', - url='https://github.com/google/benchmark/archive/v1.5.0.zip', - sha256='2d22dd3758afee43842bb504af1a8385cccb3ee1f164824e4837c1c1b04d92a0', - destination='deps', - placement='googlebenchmark', - ) - def cmake_args(self): return [ - self.define('GOOGLETEST_SOURCE_DIR', - join_path(self.stage.source_path, 'deps', 'googletest')), - self.define('GOOGLEBENCHMARK_SOURCE_DIR', - join_path(self.stage.source_path, 'deps', 'googlebenchmark')), + self.define('FXDIV_BUILD_TESTS', False), + self.define('FXDIV_BUILD_BENCHMARKS', False) ]