rocrand: add spack test support and cleanup (#27437)

This commit is contained in:
Cory Bloor 2022-02-09 14:30:56 -07:00 committed by GitHub
parent 7f1759b52e
commit a582670e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,8 +34,10 @@ class Rocrand(CMakePackage):
variant('build_type', default='Release', values=("Release", "Debug", "RelWithDebInfo"), description='CMake build type')
depends_on('cmake@3.10.2:', type='build', when='@4.5.0:')
depends_on('cmake@3.5.1:', type='build')
depends_on('numactl', when='@3.7.0:')
depends_on('googletest@1.10.0:', type='test')
for ver in ['3.5.0', '3.7.0', '3.8.0', '3.9.0', '3.10.0', '4.0.0', '4.1.0',
'4.2.0', '4.3.0', '4.3.1', '4.5.0', '4.5.2']:
@ -88,7 +90,7 @@ def fix_library_locations(self):
def cmake_args(self):
args = [
self.define('BUILD_BENCHMARK', 'OFF'),
self.define('BUILD_TEST', 'OFF')
self.define('BUILD_TEST', self.run_tests)
]
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):