mirror of
https://github.com/boostorg/convert.git
synced 2026-02-17 13:42:18 +00:00
40 lines
792 B
Plaintext
40 lines
792 B
Plaintext
#
|
||
# Copyright <20> 2009-2014 Vladimir Batov
|
||
#
|
||
# This file is taken from the 'example' sandbox library
|
||
#
|
||
|
||
##
|
||
## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
|
||
##
|
||
|
||
path-constant top : . ;
|
||
|
||
import modules ;
|
||
import path ;
|
||
|
||
local boost-root = [ modules.peek : BOOST_ROOT ] ;
|
||
|
||
if ! $(boost-root)
|
||
{
|
||
local boost-search-dirs = [ modules.peek : BOOST_BUILD_PATH ] ;
|
||
|
||
for local dir in $(boost-search-dirs)
|
||
{
|
||
if [ path.glob $(dir)/../../../ : boost/version.hpp ]
|
||
{
|
||
boost-root += $(dir)/../../../ ;
|
||
}
|
||
}
|
||
|
||
if $(boost-root)
|
||
{
|
||
boost-root = [ path.make $(boost-root[1]) ] ;
|
||
}
|
||
else
|
||
{
|
||
ECHO "Warning: couldn't find BOOST_ROOT in" $(boost-root) ;
|
||
}
|
||
}
|
||
|
||
path-constant BOOST_ROOT : $(boost-root) ; |