summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-18 04:04:56 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-18 04:04:56 (GMT)
commit4241e699c770d326602d1bc424f0d2e2f475ec76 (patch)
treea79c91a040fb260c70a0f867310cce8bcdb76963 /Source/cmLocalGenerator.cxx
parent66d1930f5674f08e09f455b3f0777f2de3e0717e (diff)
downloadCMake-4241e699c770d326602d1bc424f0d2e2f475ec76.zip
CMake-4241e699c770d326602d1bc424f0d2e2f475ec76.tar.gz
CMake-4241e699c770d326602d1bc424f0d2e2f475ec76.tar.bz2
BUG: Cannot escape link items because some need the spaces to separate arguments. Instead just escape the argument to the loader flag.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index a8d84e8..10b855d 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -1585,7 +1585,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout,
for(std::vector<cmStdString>::iterator lib = libNames.begin();
lib != libNames.end(); ++lib)
{
- linkLibs += this->Convert(lib->c_str(), NONE, SHELL, false);
+ linkLibs += *lib;
linkLibs += " ";
}
@@ -1715,17 +1715,17 @@ void cmLocalGenerator
// Pass the full path to the target file but purposely leave
// off the per-configuration subdirectory. The link directory
// ordering knows how to deal with this.
- std::string linkItem;
+ std::string linkItem = tgt->GetDirectory(0, implib);
+ linkItem += "/";
+ linkItem += tgt->GetFullName(config, implib);
if(impexe && loader_flag)
{
// This link item is an executable that may provide symbols
// used by this target. A special flag is needed on this
// platform. Add it now.
- linkItem += loader_flag;
+ linkItem = loader_flag +
+ this->Convert(linkItem.c_str(), NONE, SHELL, false);
}
- linkItem += tgt->GetDirectory(0, implib);
- linkItem += "/";
- linkItem += tgt->GetFullName(config, implib);
linkLibraries.push_back(linkItem);
// For full path, use the true location.
if(fullPathLibs)