|
Boost-Build : |
From: Sean Huang (huangsean_at_[hidden])
Date: 2006-06-11 19:07:00
An arcane error shows up every time build.bat is run:
"\Microsoft was unexpected at this time."
Turned out it is because 64-bit windows installs 32-bit applications (vs 2005 being one of them) to "program files (x86)..." instead of "program files". This (well, I do not what to say..) cause all "If condition ( cmds ) else ( cmds) " statements to throw errors similar to the one shown above if condition contains parentheses. One solution is to put (cmds) spanned multiple lines to one line and separate cmds by &&. Another one would be to use the gotos. Either solution will make build.bat totally unreadable. The best I can come up with is something like this:
if conditionContainsParen set boolean=true else set boolean=false
if "%boolean%"== "true" ( cmds ) else (cmds)
Of course, a better name should be chosen.
Sean
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk