pcl: fix for Boost 1.67 compatibility (#26824)

This commit is contained in:
ilovezfs 2018-04-19 10:03:29 -07:00 committed by GitHub
parent 9a4d6e3a9f
commit 64029c6fdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,12 @@ class Pcl < Formula
depends_on "vtk"
def install
# Fix "error: no matching constructor for initialization of
# 'boost::uuids::random_generator' (aka 'boost::uuids::random_generator_pure')"
# Upstream issue 18 Apr 2018 "Fails to build against Boost 1.67"
# See https://github.com/PointCloudLibrary/pcl/issues/2284
ENV.append "CXXFLAGS", "-DBOOST_UUID_RANDOM_GENERATOR_COMPAT"
args = std_cmake_args + %w[
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_apps=AUTO_OFF