2
0
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:
Vladimir Prus
2006-10-22 17:41:31 +00:00
parent f902bf3a6b
commit 410718da92

View File

@@ -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 ] ;
}
}