cmake package: add variant for openssl support
The openssl variant defaults to true to preserve spack's current CMake configuration, which is using OpenSSL. Signed-off-by: Cyrus Harrison <cyrush@llnl.gov>
This commit is contained in:
parent
c0f0350634
commit
d493658a58
@ -38,6 +38,7 @@ class Cmake(Package):
|
|||||||
version('2.8.10.2', '097278785da7182ec0aea8769d06860c')
|
version('2.8.10.2', '097278785da7182ec0aea8769d06860c')
|
||||||
|
|
||||||
variant('ncurses', default=True, description='Enables the build of the ncurses gui')
|
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('qt', default=False, description='Enables the build of cmake-gui')
|
||||||
variant('doc', default=False, description='Enables the generation of html and man page documentation')
|
variant('doc', default=False, description='Enables the generation of html and man page documentation')
|
||||||
|
|
||||||
@ -77,6 +78,7 @@ def install(self, spec, prefix):
|
|||||||
options.append('--sphinx-html')
|
options.append('--sphinx-html')
|
||||||
options.append('--sphinx-man')
|
options.append('--sphinx-man')
|
||||||
|
|
||||||
|
if '+openssl' in spec:
|
||||||
options.append('--')
|
options.append('--')
|
||||||
options.append('-DCMAKE_USE_OPENSSL=ON')
|
options.append('-DCMAKE_USE_OPENSSL=ON')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user