mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Automatically set BOOST_BUILD_PCH_ENABLED when pch is enabled.
[SVN r35692]
This commit is contained in:
@@ -38,6 +38,7 @@ type.register CPP_PCH : : PCH ;
|
||||
feature.feature pch :
|
||||
on
|
||||
off
|
||||
: propagated
|
||||
;
|
||||
|
||||
feature.feature pch-header : : free dependency ;
|
||||
@@ -74,8 +75,10 @@ class pch-generator : generator
|
||||
}
|
||||
else
|
||||
{
|
||||
return [ run-pch $(project) $(name) : $(property-set)
|
||||
: $(sources) ] ;
|
||||
local r = [ run-pch $(project) $(name) : $(property-set)
|
||||
: $(sources) ] ;
|
||||
return [ generators.add-usage-requirements $(r)
|
||||
: <define>BOOST_BUILD_PCH_ENABLED ] ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user