Merge pull request #587 from cyrush/cmake_pkg_openssl_as_variant
cmake package: add variant for openssl support
This commit is contained in:
commit
c83d22b5fc
1 changed files with 5 additions and 2 deletions
|
@ -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 @@ def install(self, spec, prefix):
|
|||
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()
|
||||
|
|
Loading…
Reference in a new issue