From 962bbbec959edd7406365c3ef3b27a6ba621d79e Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 16 Jun 2009 11:57:23 -0400 Subject: 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. --- Source/cmLocalVisualStudio6Generator.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 4cf9f6c..768550f 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/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 pcc( + this->MaybeCreateImplibDir(target, configName)); + if(pcc.get()) + { + event.Write(*pcc); + } event.Finish(); // Write the post-build rules. -- cgit v0.12