From 59ccb1f48bae486f1dc0e3a67d6b7a66c0ece57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Sun, 22 Jul 2012 07:17:43 +0000 Subject: [PATCH] Allowed Boost Build option rule to be used in test-config configuration files. Corrected and updated the related end-user error message. [SVN r79656] --- src/build/project.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/build/project.jam b/src/build/project.jam index b2d0057c1..e9135628a 100644 --- a/src/build/project.jam +++ b/src/build/project.jam @@ -1104,10 +1104,12 @@ module project-rules rule option ( name : value ) { local m = [ CALLER_MODULE ] ; - if $(m) != site-config && $(m) != user-config && $(m) != project-config + local cfgs = project site test user ; + if ! $(m) in $(cfgs)-config { import errors ; - errors.error "The 'option' rule may be used only in site-config or user-config" ; + errors.error The 'option' rule may only be used "in" Boost Build + configuration files. ; } import option ; option.set $(name) : $(value) ;