summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-16 15:44:19 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-16 15:44:19 (GMT)
commit66189b0b7970d9270845a2d2ee725a7c357cc0ac (patch)
treec77e46dd3c2d468700a95dd79141d7105c34161b
parent764ac9803d8f7c33fed29ef43563d894161797fa (diff)
downloadCMake-66189b0b7970d9270845a2d2ee725a7c357cc0ac.zip
CMake-66189b0b7970d9270845a2d2ee725a7c357cc0ac.tar.gz
CMake-66189b0b7970d9270845a2d2ee725a7c357cc0ac.tar.bz2
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.
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index ddeeb83..d3a5c54 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<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.