From 33bbf45b1dee9046ab37964f613d84dfee3337c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Mon, 13 Aug 2012 11:55:49 +0000 Subject: [PATCH] Boost Build cleanup - more detailed error reporting when attempting to register the same project id for multiple projects. [SVN r80000] --- v2/build/project.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v2/build/project.jam b/v2/build/project.jam index a3aea986d..4c3e6858d 100644 --- a/v2/build/project.jam +++ b/v2/build/project.jam @@ -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=---) ; }