diff options
author | Brad King <brad.king@kitware.com> | 2009-06-16 15:57:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-16 15:57:23 (GMT) |
commit | 962bbbec959edd7406365c3ef3b27a6ba621d79e (patch) | |
tree | ae2d1ca5494803d53750c5a284b816db6421fd7a | |
parent | 5129c23cba388a1aecc754bd4c1cb179ba4735d3 (diff) | |
download | CMake-962bbbec959edd7406365c3ef3b27a6ba621d79e.zip CMake-962bbbec959edd7406365c3ef3b27a6ba621d79e.tar.gz CMake-962bbbec959edd7406365c3ef3b27a6ba621d79e.tar.bz2 |
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.
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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<cmCustomCommand> pcc( + this->MaybeCreateImplibDir(target, configName)); + if(pcc.get()) + { + event.Write(*pcc); + } event.Finish(); // Write the post-build rules. |