2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-27 19:12:08 +00:00
Files
math/project-root.jam
John Maddock 2e8429804e Fix bug.
[SVN r50660]
2009-01-18 10:25:57 +00:00

63 lines
1.2 KiB
Plaintext

#
# Copyright (c) 2006 João Abecasis
#
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
##
## IMPORTANT NOTE: This file MUST NOT be copied over a boost installation
##
path-constant top : . ;
import modules ;
import path ;
boost-root = [ modules.peek : BOOST_ROOT ] ;
local math-header-include = $(top)/../.. ;
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) ;
}
}
use-project /boost/regex : $(boost-root)/libs/regex/build ;
use-project /boost/unit_test : $(boost-root)/libs/test/build ;
project math-toolkit
: requirements
<include>$(boost-root)
<include>$(math-header-include)
: # build everything in ./bin.v2
build-dir bin.v2
;
rule get-boost-path
{
return $(boost-root) ;
}