# Copyright 2002, 2003 Dave Abrahams
# Copyright 2002, 2003, 2004, 2005, 2006 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
# Deals with target type declaration and defines target class which supports
# typed targets.
errors.error "Type $(type) is already registered." ;
}
+ if $(base-type) && ! $(base-type) in $(.types)
+ {
+ import errors ;
+ errors.error "Type $(base-type) is not registered." ;
+ }
+
{
.types += $(type) ;
.base.$(type) = $(base-type) ;