diff options
author | Oliver Breitwieser <oliver.breitwieser@kip.uni-heidelberg.de> | 2019-07-26 02:50:23 +0200 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-07-25 19:50:23 -0500 |
commit | 867ba9d7fe58858815b9650b69348b86d841e906 (patch) | |
tree | f0fc8bc79f74b1f4043d5a5c1e28bdb351f9e1cb | |
parent | 94af6cad5fb4d32906a160b34a5d2fb7cc9f3709 (diff) | |
download | spack-867ba9d7fe58858815b9650b69348b86d841e906.tar.gz spack-867ba9d7fe58858815b9650b69348b86d841e906.tar.bz2 spack-867ba9d7fe58858815b9650b69348b86d841e906.tar.xz spack-867ba9d7fe58858815b9650b69348b86d841e906.zip |
googletest: Fix reversed +pthreads option (#12128)
If +pthreads is specified, googletest actually gets build without
pthreads support and vice versa.
If pthreads is not available, googletest should detect it itself which
is why "enabling" pthreads in case of ~pthreads does not seem to cause
any error.
Change-Id: I29de8c4a23dc3901124b27a1ead3354949b7e65b
-rw-r--r-- | var/spack/repos/builtin/packages/googletest/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py index 4bf0724058..806ecf01ff 100644 --- a/var/spack/repos/builtin/packages/googletest/package.py +++ b/var/spack/repos/builtin/packages/googletest/package.py @@ -38,7 +38,7 @@ class Googletest(CMakePackage): options = [] options.append('-Dgtest_disable_pthreads={0}'.format( - 'ON' if '+pthreads' in spec else 'OFF')) + 'OFF' if '+pthreads' in spec else 'ON')) options.append('-DBUILD_SHARED_LIBS={0}'.format( 'ON' if '+shared' in spec else 'OFF')) return options |