rocrand: add spack test support and cleanup (#27437)
This commit is contained in:
parent
7f1759b52e
commit
a582670e15
1 changed files with 4 additions and 2 deletions
|
@ -34,8 +34,10 @@ class Rocrand(CMakePackage):
|
||||||
|
|
||||||
variant('build_type', default='Release', values=("Release", "Debug", "RelWithDebInfo"), description='CMake build type')
|
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('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',
|
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']:
|
'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):
|
def cmake_args(self):
|
||||||
args = [
|
args = [
|
||||||
self.define('BUILD_BENCHMARK', 'OFF'),
|
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'):
|
if self.spec.satisfies('^cmake@3.21.0:3.21.2'):
|
||||||
|
|
Loading…
Reference in a new issue