Another way of doing that is how I'm dealing with building in multiple machines and different Visual Studio versions (and release/debug builds, etc) - inside
build.bat I've got something like this
| set PLATFORM=amd64
set BUILD_TYPE=debug
set TOOLSET_LOCATION=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC
set INTERNAL_BUILD=1
set SLOW_BUILD=1
if exist "%~dp0\env.bat" call "%~dp0\env.bat"
|
and then I have a separate file
env.bat, that isn't pushed to source control, where I can change whatever variables I need. You could easily adapt this for that STREAMING case, only setting the flag in that
env.bat :)