diff options
author | Alberto Chiusole <bebosudo@users.noreply.github.com> | 2018-12-18 02:23:53 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-12-17 19:23:53 -0600 |
commit | a41571a1b65ca9d02859385d0c52f21706577165 (patch) | |
tree | cdef8f01842d62667e8373bf3c55edf7ad406c70 /var | |
parent | c70ea22c6fabfe3372d502425167a3bc771b5aaa (diff) | |
download | spack-a41571a1b65ca9d02859385d0c52f21706577165.tar.gz spack-a41571a1b65ca9d02859385d0c52f21706577165.tar.bz2 spack-a41571a1b65ca9d02859385d0c52f21706577165.tar.xz spack-a41571a1b65ca9d02859385d0c52f21706577165.zip |
Add variant to ecflow to choose whether to use static boost libraries. (#9933)
When this variant is set, it requires boost to be built with the +pic variant.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/ecflow/package.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ecflow/package.py b/var/spack/repos/builtin/packages/ecflow/package.py index 477552829c..1248128abc 100644 --- a/var/spack/repos/builtin/packages/ecflow/package.py +++ b/var/spack/repos/builtin/packages/ecflow/package.py @@ -20,11 +20,20 @@ class Ecflow(CMakePackage): version('4.11.1', sha256='b3bcc1255939f87b9ba18d802940e08c0cf6379ca6aeec1fef7bd169b0085d6c') - depends_on('boost+python+pic') + variant('static_boost', default=False, + description='Use also static boost libraries when compiling') + + depends_on('boost+python') + depends_on('boost+pic', when='+static_boost') depends_on('qt') depends_on('cmake@2.8.11:', type='build') def cmake_args(self): boost_lib = self.spec['boost'].prefix.lib args = ['-DBoost_PYTHON_LIBRARY_RELEASE=' + boost_lib] + + # https://jira.ecmwf.int/browse/SUP-2641#comment-208943 + use_static_boost = 'ON' if '+static_boost' in self.spec else 'OFF' + args.append('-DENABLE_STATIC_BOOST_LIBS=' + use_static_boost) + return args |