diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2018-06-06 19:10:34 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-06-06 12:10:34 -0500 |
commit | d1d731bf837c66863e80cda73c0e3a811fd1f191 (patch) | |
tree | 5860c9484b63d49927d613de34836508f9249b75 /var | |
parent | 34149e9a2b7718d2e8e5d66db33d88b7f9bd9d61 (diff) | |
download | spack-d1d731bf837c66863e80cda73c0e3a811fd1f191.tar.gz spack-d1d731bf837c66863e80cda73c0e3a811fd1f191.tar.bz2 spack-d1d731bf837c66863e80cda73c0e3a811fd1f191.tar.xz spack-d1d731bf837c66863e80cda73c0e3a811fd1f191.zip |
xsimd: test type (#8405)
Add the new type 'test` to the `googletest` dependency
of xsimd.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/xsimd/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/xsimd/package.py b/var/spack/repos/builtin/packages/xsimd/package.py index 6240c38a05..e08eab8606 100644 --- a/var/spack/repos/builtin/packages/xsimd/package.py +++ b/var/spack/repos/builtin/packages/xsimd/package.py @@ -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 |