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:
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user