2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 13:22:11 +00:00

Boost Build cleanup - more detailed error reporting when attempting to register the same project id for multiple projects.

[SVN r80000]
This commit is contained in:
Jurko Gospodnetić
2012-08-13 11:55:49 +00:00
parent 67b135fdea
commit 33bbf45b1d

View File

@@ -604,18 +604,20 @@ local rule register-id ( id : module )
local orig-file = [ modules.peek $(orig-module) : __file__ ] ;
local orig-main-id = [ project.attribute $(orig-module) id ] ;
local orig-location = [ project.attribute $(orig-module) location ] ;
local orig-p = [ target $(orig-module) ] ;
local orig-name = [ $(orig-p).name ] ;
local orig-project = [ target $(orig-module) ] ;
local orig-name = [ $(orig-project).name ] ;
import errors ;
errors.user-error Attempt to redeclare already registered project id
'$(id)'.
: Original project:
: " " Name: $(orig-name:E=---)
: " " Module: $(orig-module)
: " " Main id: $(orig-main-id:E=---)
: " " File: $(orig-file:E=---)
: " " Location: $(orig-location:E=---)
: New project:
: " " Module: $(module)
: " " File: $(new-file:E=---)
: " " Location: $(new-location:E=---) ;
}