Skip to content
Snippets Groups Projects
Commit bb7b5185 authored by Andrey Prokopenko's avatar Andrey Prokopenko Committed by becker33
Browse files

yaml-cpp: add boost dependency (#2517)

yaml-cpp has a boost dependency, and according to [yaml-cpp
page](https://github.com/jbeder/yaml-cpp):
    yaml-cpp 0.5.3 has been released! This is a bug fix release. It also
    will be the last release that uses Boost; futures releases will require
    C++11 instead.
parent e0f5b124
Branches
Tags
No related merge requests found
...@@ -29,8 +29,7 @@ class YamlCpp(CMakePackage): ...@@ -29,8 +29,7 @@ class YamlCpp(CMakePackage):
"""A YAML parser and emitter in C++""" """A YAML parser and emitter in C++"""
homepage = "https://github.com/jbeder/yaml-cpp" homepage = "https://github.com/jbeder/yaml-cpp"
url = \ url = "https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.tar.gz"
"https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.tar.gz"
version('0.5.3', '4e47733d98266e46a1a73ae0a72954eb') version('0.5.3', '4e47733d98266e46a1a73ae0a72954eb')
...@@ -39,11 +38,13 @@ class YamlCpp(CMakePackage): ...@@ -39,11 +38,13 @@ class YamlCpp(CMakePackage):
depends_on('cmake', type='build') depends_on('cmake', type='build')
depends_on('boost', when='@:0.5.3')
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec
options = [] options = []
if '+fpic' in spec: if '+fpic' in spec:
options.extend([ options.extend([
'-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true' '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true'
]) ])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment