From afad12431371d9a725b9a85db39f8c4da37fabaf Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 6 Feb 2008 14:19:03 -0500 Subject: BUG: Make sure linking to a shared lib on windows uses import library and not the new realname. --- Source/cmTarget.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 6cb8d93..a9c5b53 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2093,13 +2093,17 @@ std::string cmTarget::NormalGetFullPath(const char* config, bool implib, fpath += "/"; // Add the full name of the target. - if(realname) + if(implib) + { + fpath += this->GetFullName(config, true); + } + else if(realname) { fpath += this->NormalGetRealName(config); } else { - fpath += this->GetFullName(config, implib); + fpath += this->GetFullName(config, false); } return fpath; } -- cgit v0.12