From 66189b0b7970d9270845a2d2ee725a7c357cc0ac Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Jun 2009 11:44:19 -0400 Subject: [PATCH] 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. --- Source/cmLocalVisualStudio7Generator.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index ddeeb8390..d3a5c54c2 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1693,18 +1693,18 @@ void cmLocalVisualStudio7Generator this->FortranProject? "VFPreBuildEventTool":"VCPreBuildEventTool"; event.Start(tool); event.Write(target.GetPreBuildCommands()); - cmsys::auto_ptr 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 pcc( + this->MaybeCreateImplibDir(target, configName)); + if(pcc.get()) + { + event.Write(*pcc); + } event.Finish(); // Add post-build event.