xsimd: test type (#8405)

Add the new type 'test` to the `googletest` dependency
of xsimd.
This commit is contained in:
Axel Huebl 2018-06-06 19:10:34 +02:00 committed by Adam J. Stewart
parent 34149e9a2b
commit d1d731bf83

View File

@ -37,10 +37,18 @@ class Xsimd(CMakePackage):
version('4.0.0', '4186ec94985daa3fc284d9d0d4aa03e8')
version('3.1.0', '29c1c525116cbda28f610e2bf24a827e')
depends_on('googletest', type='build')
depends_on('googletest', type='test')
# C++14 support
conflicts('%gcc@:4.8')
conflicts('%clang@:3.6')
# untested: conflicts('%intel@:15')
# untested: conflicts('%pgi@:14')
def cmake_args(self):
args = [
'-DBUILD_TESTS:BOOL={0}'.format(
'ON' if self.run_tests else 'OFF')
]
return args