Browse Source

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.
Brad King 16 years ago
parent
commit
962bbbec95
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Source/cmLocalVisualStudio6Generator.cxx

+ 6 - 0
Source/cmLocalVisualStudio6Generator.cxx

@@ -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.