fix install method of cereal (#5094)

* removed unnecessary install method from cereal

* attempt to fix flake8 error

* adjusted install method

* add CMake options instead of manually patching stuff

* flake8
This commit is contained in:
healther 2017-09-21 15:10:51 +02:00 committed by Christoph Junghans
parent a4309e1129
commit 837c325160

View File

@ -52,18 +52,11 @@ class Cereal(CMakePackage):
depends_on('cmake@2.6.2:', type='build')
def patch(self):
# Don't use -Werror
filter_file(r'-Werror', '', 'CMakeLists.txt')
def cmake_args(self):
# Boost is only used for self-tests, which we are not running (yet?)
return [
'-DCMAKE_DISABLE_FIND_PACKAGE_Boost=TRUE',
'-DSKIP_PORTABILITY_TEST=TRUE',
'-DJUST_INSTALL_CEREAL=On',
'-DWITH_WERROR=Off',
]
def install(self, spec, prefix):
with working_dir(self.build_directory):
install_tree('doc', prefix.doc)
install_tree('include', prefix.include)