summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-31 13:37:20 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-31 13:37:20 (GMT)
commit8f26ed43b1873021aeddf211357ac87f981248f5 (patch)
treefcd030c2f4d241c13528f249143b30a1f85df35a
parentaad04efe5eb483462d118cae8b76e64795a53810 (diff)
parente5375442ff20fde45e70de318c5aa2f1e4bb190a (diff)
downloadCMake-8f26ed43b1873021aeddf211357ac87f981248f5.zip
CMake-8f26ed43b1873021aeddf211357ac87f981248f5.tar.gz
CMake-8f26ed43b1873021aeddf211357ac87f981248f5.tar.bz2
Merge branch 'fix-try_compile-library-spaces' into release
-rw-r--r--Source/cmCoreTryCompile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index 9f38b25..85e49a9 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -111,7 +111,7 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
++i)
{
extraArgs++;
- libsToLink += argv[i] + " ";
+ libsToLink += "\"" + cmSystemTools::TrimWhitespace(argv[i]) + "\" ";
cmTarget *tgt = this->Makefile->FindTargetToUse(argv[i].c_str());
if (!tgt)
{