summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhealther <healther@users.noreply.github.com>2017-03-01 23:36:46 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2017-03-01 16:36:46 -0600
commitffce6e1c4e8ab98c6d90dd2187a63387d13c098e (patch)
treea227990589b9d2981cb1a4fab4cff0cdb1e1f11a
parent20360f67275d780117a47da9c026408d83fdfbfd (diff)
downloadspack-ffce6e1c4e8ab98c6d90dd2187a63387d13c098e.tar.gz
spack-ffce6e1c4e8ab98c6d90dd2187a63387d13c098e.tar.bz2
spack-ffce6e1c4e8ab98c6d90dd2187a63387d13c098e.tar.xz
spack-ffce6e1c4e8ab98c6d90dd2187a63387d13c098e.zip
add variant shared to yaml-cpp (#3254)
-rw-r--r--var/spack/repos/builtin/packages/yaml-cpp/package.py6
1 files changed, 6 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 0ced7c89fc..e600d470a9 100644
--- a/var/spack/repos/builtin/packages/yaml-cpp/package.py
+++ b/var/spack/repos/builtin/packages/yaml-cpp/package.py
@@ -33,6 +33,8 @@ class YamlCpp(CMakePackage):
version('0.5.3', '4e47733d98266e46a1a73ae0a72954eb')
+ variant('shared', default=True,
+ description='Enable build of shared libraries')
variant('fpic', default=False,
description='Build with position independent code')
@@ -46,5 +48,9 @@ class YamlCpp(CMakePackage):
options.extend([
'-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true'
])
+ if '+shared' in spec:
+ options.append('-DBUILD_SHARED_LIBS=ON')
+ else:
+ options.append('-DBUILD_SHARED_LIBS=OFF')
return options