From commits-return-14643-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Wed Sep 19 05:34:42 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 67E22180771 for ; Wed, 19 Sep 2018 05:34:41 +0200 (CEST) Received: (qmail 13117 invoked by uid 500); 19 Sep 2018 03:34:40 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 12307 invoked by uid 99); 19 Sep 2018 03:34:39 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2018 03:34:39 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 2B23582C51; Wed, 19 Sep 2018 03:34:39 +0000 (UTC) Date: Wed, 19 Sep 2018 03:34:41 +0000 To: "commits@pulsar.apache.org" Subject: [incubator-pulsar] 03/03: Enforce boost-python was found by CMake MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: mmerli@apache.org In-Reply-To: <153732807885.14551.9925775017454462728@gitbox.apache.org> References: <153732807885.14551.9925775017454462728@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-pulsar X-Git-Refname: refs/heads/py-build-fix-2.1.1 X-Git-Reftype: branch X-Git-Rev: fbc19fde3d0983daabc70b50ad6f7ec8ea9119af X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180919033439.2B23582C51@gitbox.apache.org> This is an automated email from the ASF dual-hosted git repository. mmerli pushed a commit to branch py-build-fix-2.1.1 in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git commit fbc19fde3d0983daabc70b50ad6f7ec8ea9119af Author: Matteo Merli AuthorDate: Tue Sep 18 20:33:58 2018 -0700 Enforce boost-python was found by CMake --- pulsar-client-cpp/python/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pulsar-client-cpp/python/CMakeLists.txt b/pulsar-client-cpp/python/CMakeLists.txt index d506844..78fcc67 100644 --- a/pulsar-client-cpp/python/CMakeLists.txt +++ b/pulsar-client-cpp/python/CMakeLists.txt @@ -37,7 +37,12 @@ endif() # Try all possible boost-python variable namings set(PYTHON_WRAPPER_LIBS ${Boost_PYTHON_LIBRARY} ${Boost_PYTHON3_LIBRARY} - ${Boost_PYTHON27-MT_LIBRARY} ${Boost_PYTHON37-MT_LIBRARY}) + ${Boost_PYTHON27-MT_LIBRARY} ${Boost_PYTHON37-MT_LIBRARY} + ${Boost_PYTHON27-MT_LIBRARY_RELEASE} ${Boost_PYTHON37-MT_LIBRARY_RELEASE}) + +if (NOT PYTHON_WRAPPER_LIBS) + MESSAGE(FATAL_ERROR "Could not find Boost Python library") +endif () if (APPLE) target_link_libraries(_pulsar -Wl,-all_load pulsarStatic ${PYTHON_WRAPPER_LIBS})