summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-24 02:42:39 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-24 02:42:39 -0700
commitc83d22b5fcdc3de16102e226e497f745d6bd7043 (patch)
treea1b5ebb107e402773df7f881e43bd7e7b73b647e
parentb10a98a3ac01d82e290256f3ecf0d3a7acbab85f (diff)
parentbba66cbe2836e364b58a611a5a5f5ae0d9692df4 (diff)
downloadspack-c83d22b5fcdc3de16102e226e497f745d6bd7043.tar.gz
spack-c83d22b5fcdc3de16102e226e497f745d6bd7043.tar.bz2
spack-c83d22b5fcdc3de16102e226e497f745d6bd7043.tar.xz
spack-c83d22b5fcdc3de16102e226e497f745d6bd7043.zip
Merge pull request #587 from cyrush/cmake_pkg_openssl_as_variant
cmake package: add variant for openssl support
-rw-r--r--var/spack/repos/builtin/packages/cmake/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py
index cc93c7067c..1f93d39769 100644
--- a/var/spack/repos/builtin/packages/cmake/package.py
+++ b/var/spack/repos/builtin/packages/cmake/package.py
@@ -38,10 +38,12 @@ class Cmake(Package):
version('2.8.10.2', '097278785da7182ec0aea8769d06860c')
variant('ncurses', default=True, description='Enables the build of the ncurses gui')
+ variant('openssl', default=True, description="Enables CMake's OpenSSL features")
variant('qt', default=False, description='Enables the build of cmake-gui')
variant('doc', default=False, description='Enables the generation of html and man page documentation')
depends_on('ncurses', when='+ncurses')
+ depends_on('openssl', when='+openssl')
depends_on('qt', when='+qt')
depends_on('python@2.7.11:', when='+doc')
depends_on('py-sphinx', when='+doc')
@@ -77,8 +79,9 @@ class Cmake(Package):
options.append('--sphinx-html')
options.append('--sphinx-man')
- options.append('--')
- options.append('-DCMAKE_USE_OPENSSL=ON')
+ if '+openssl' in spec:
+ options.append('--')
+ options.append('-DCMAKE_USE_OPENSSL=ON')
configure(*options)
make()