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

Allowed Boost Build option rule to be used in test-config configuration files. Corrected and updated the related end-user error message.

[SVN r79656]
This commit is contained in:
Jurko Gospodnetić
2012-07-22 07:17:43 +00:00
parent ca0d98cc38
commit 59ccb1f48b

View File

@@ -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) ;