summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCarson Woods <carsonwoods@users.noreply.github.com>2020-04-01 21:39:04 -0400
committerGitHub <noreply@github.com>2020-04-01 20:39:04 -0500
commit9b1820c2de6f92b322038f059baadb2f9f4060c2 (patch)
tree0fb8011199c4a4ec2af940aac707473508d6cc74 /var
parent814996eebcd15c036afb5bc43a29e7bf3780ca8e (diff)
downloadspack-9b1820c2de6f92b322038f059baadb2f9f4060c2.tar.gz
spack-9b1820c2de6f92b322038f059baadb2f9f4060c2.tar.bz2
spack-9b1820c2de6f92b322038f059baadb2f9f4060c2.tar.xz
spack-9b1820c2de6f92b322038f059baadb2f9f4060c2.zip
package: add static library build option for yaml-cpp (#15814)
* Add static build option * Fix flake8 errors and standardize spacing of build commands Co-authored-by: Carson Woods <carwood@sandia.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/yaml-cpp/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/yaml-cpp/package.py b/var/spack/repos/builtin/packages/yaml-cpp/package.py
index 321792bd2e..3679b571d8 100644
--- a/var/spack/repos/builtin/packages/yaml-cpp/package.py
+++ b/var/spack/repos/builtin/packages/yaml-cpp/package.py
@@ -23,6 +23,8 @@ class YamlCpp(CMakePackage):
variant('shared', default=True,
description='Enable build of shared libraries')
+ variant('static', default=False,
+ description='Build with static libraries')
variant('pic', default=True,
description='Build with position independent code')
variant('tests', default=False,
@@ -65,6 +67,8 @@ class YamlCpp(CMakePackage):
options.extend([
'-DBUILD_SHARED_LIBS:BOOL=%s' % (
'ON' if '+shared' in spec else 'OFF'),
+ '-DBUILD_STATIC_LIBS=%s' % (
+ 'ON' if '+static' in spec else 'OFF'),
'-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=%s' % (
'ON' if '+pic' in spec else 'OFF'),
'-DYAML_CPP_BUILD_TESTS:BOOL=%s' % (