Is there any way to iterate through the passed in macros and convert them to environment variables so they are available to the sub-projects?
I tried this:
Dim macros, macro
Set macros = Application.Macros(vbldMacroTemporary)
For each macro in macros
macro.AddAsEnvVar = true
Next
but this didn't work for the sub-projects. I also tried adding the macros as project level macros but the VisBuild help says the environment variable won't take effect until the build is restarted.
For now I have created some "hard coded" SET MACRO actions that get set at the start of the master build.
Any thoughts?
|