don't link against the boost_python3 target if boost >= 1.67

This commit is contained in:
arvidn 2018-12-06 01:49:47 +01:00 committed by Arvid Norberg
parent b043fba5eb
commit 8c188cd1fe
1 changed files with 8 additions and 0 deletions

View File

@ -31,6 +31,14 @@ if $(LIBTORRENT_PYTHON_INTERPRETER)
# copied from boost 1.63's boost python jamfile # copied from boost 1.63's boost python jamfile
rule find-py3-version 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 versions = [ feature.values python ] ;
local py3ver ; local py3ver ;
for local v in $(versions) for local v in $(versions)