From 8c188cd1fe9ed34b8008d6f34e24ec26218eadf6 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 6 Dec 2018 01:49:47 +0100 Subject: [PATCH] don't link against the boost_python3 target if boost >= 1.67 --- bindings/python/Jamfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/python/Jamfile b/bindings/python/Jamfile index 698efaf8d..47d389c97 100644 --- a/bindings/python/Jamfile +++ b/bindings/python/Jamfile @@ -31,6 +31,14 @@ if $(LIBTORRENT_PYTHON_INTERPRETER) # copied from boost 1.63's boost python jamfile rule find-py3-version { + local BOOST_VERSION_TAG = [ modules.peek boostcpp : BOOST_VERSION_TAG ] ; + if $(BOOST_VERSION_TAG) >= 1_67 + { + # starting with boost 1.67.0 boost python no longer define a separate + # target for python3 (boost_python3) so then we just use the regular + # boost_python target + return ; + } local versions = [ feature.values python ] ; local py3ver ; for local v in $(versions)