ENH: Create exe implib dir in VS pre-link rule
This moves creation of an executable's import library directory in VS projects from the pre-build step to the pre-link step. It makes sense to create the directory at the last moment.
This commit is contained in:
parent
764ac9803d
commit
66189b0b79
|
@ -1693,18 +1693,18 @@ void cmLocalVisualStudio7Generator
|
|||
this->FortranProject? "VFPreBuildEventTool":"VCPreBuildEventTool";
|
||||
event.Start(tool);
|
||||
event.Write(target.GetPreBuildCommands());
|
||||
cmsys::auto_ptr<cmCustomCommand> pcc(
|
||||
this->MaybeCreateImplibDir(target, configName));
|
||||
if(pcc.get())
|
||||
{
|
||||
event.Write(*pcc);
|
||||
}
|
||||
event.Finish();
|
||||
|
||||
// Add pre-link event.
|
||||
tool = this->FortranProject? "VFPreLinkEventTool":"VCPreLinkEventTool";
|
||||
event.Start(tool);
|
||||
event.Write(target.GetPreLinkCommands());
|
||||
cmsys::auto_ptr<cmCustomCommand> pcc(
|
||||
this->MaybeCreateImplibDir(target, configName));
|
||||
if(pcc.get())
|
||||
{
|
||||
event.Write(*pcc);
|
||||
}
|
||||
event.Finish();
|
||||
|
||||
// Add post-build event.
|
||||
|
|
Loading…
Reference in New Issue