Переглянути джерело

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 роки тому
батько
коміт
962bbbec95
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      Source/cmLocalVisualStudio6Generator.cxx

+ 6 - 0
Source/cmLocalVisualStudio6Generator.cxx

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