BUG: Create an exe's implib output dir for VS 6

VS 6 forgets to create the output directory for an executable's import
library in case the exe dllexport-s symbols.  We work around this VS bug
by creating a pre-link event on the executable target to make the
directory.
This commit is contained in:
Brad King 2009-06-16 11:57:23 -04:00
parent 5129c23cba
commit 962bbbec95

View File

@ -845,6 +845,12 @@ cmLocalVisualStudio6Generator::CreateTargetRules(cmTarget &target,
event.Start("PreLink"); event.Start("PreLink");
event.Write(target.GetPreBuildCommands()); event.Write(target.GetPreBuildCommands());
event.Write(target.GetPreLinkCommands()); event.Write(target.GetPreLinkCommands());
cmsys::auto_ptr<cmCustomCommand> pcc(
this->MaybeCreateImplibDir(target, configName));
if(pcc.get())
{
event.Write(*pcc);
}
event.Finish(); event.Finish();
// Write the post-build rules. // Write the post-build rules.