Tweaks to normalize tool modular building.

This commit is contained in:
Rene Rivera
2024-03-24 18:24:22 -05:00
parent 71ef55aeff
commit 2a953743fe

20
Jamfile
View File

@@ -1,7 +1,17 @@
# Copyright 2019 Peter Dimov
# Copyright René Ferdinand Rivera Morell 2024
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
import option ;
import path ;
local DIST_DIR = [ option.get distdir ] ;
DIST_DIR ?= [ option.get build-dir ] ;
DIST_DIR ?= [ path.join $(BOOST_ROOT) dist ] ;
DIST_DIR ?= dist ;
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;
project /boost/boost_install ;
# BoostConfigVersion.cmake
@@ -10,6 +20,10 @@ generate BoostConfigVersion.cmake : : <generating-rule>@boost-install%generate-c
explicit BoostConfigVersion.cmake ;
explicit
[ alias boost_install ]
[ alias all : BoostConfigVersion.cmake ]
;
[ install dist-cmake
: BoostConfigVersion.cmake [ glob *.cmake ]
: <location>$(DIST_DIR)/libs/cmake ]
[ alias dist : dist-cmake ]
[ alias boost_install ]
[ alias all : boost_install dist ]
;