skip googletest and googlebenchmark for header only library (#28068)
This commit is contained in:
parent
e96b91dd37
commit
87978f7989
1 changed files with 2 additions and 19 deletions
|
@ -23,25 +23,8 @@ class Fxdiv(CMakePackage):
|
||||||
|
|
||||||
generator = 'Ninja'
|
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):
|
def cmake_args(self):
|
||||||
return [
|
return [
|
||||||
self.define('GOOGLETEST_SOURCE_DIR',
|
self.define('FXDIV_BUILD_TESTS', False),
|
||||||
join_path(self.stage.source_path, 'deps', 'googletest')),
|
self.define('FXDIV_BUILD_BENCHMARKS', False)
|
||||||
self.define('GOOGLEBENCHMARK_SOURCE_DIR',
|
|
||||||
join_path(self.stage.source_path, 'deps', 'googlebenchmark')),
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue