Support locating Boost under BOOST_DIR/lib

This commit is contained in:
Alessandro Ranellucci 2018-11-05 20:00:19 +01:00
parent 734e6e7ef9
commit 90c192e8ed

View File

@ -127,7 +127,7 @@ if (defined $ENV{BOOST_LIBRARYPATH}) {
push @boost_libs, $ENV{BOOST_LIBRARYPATH}
} elsif (defined $ENV{BOOST_DIR}) {
# User might have provided a path relative to the Build.PL in the main directory
foreach my $subdir ("$ENV{BOOST_DIR}/stage/lib", "../$ENV{BOOST_DIR}/stage/lib") {
foreach my $subdir ("$ENV{BOOST_DIR}/stage/lib", "../$ENV{BOOST_DIR}/stage/lib", "$ENV{BOOST_DIR}/lib", "../$ENV{BOOST_DIR}/lib") {
next if $subdir =~ m{^\.\.//};
printf "Checking %s: ", $subdir;
if (-d $subdir) {