summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-28 14:42:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-05-28 14:42:40 (GMT)
commit590a41ba0ead92f3989b3c226632c29fac76bf2e (patch)
tree3d764980a9fd3e9be5adbf3197d28f3ec5419b08
parent07942da96cc2db73877f0ed916edf16dc9476a85 (diff)
parente65ef08bf2719ffd1cc4226f9594ff7127ad8b5e (diff)
downloadCMake-590a41ba0ead92f3989b3c226632c29fac76bf2e.zip
CMake-590a41ba0ead92f3989b3c226632c29fac76bf2e.tar.gz
CMake-590a41ba0ead92f3989b3c226632c29fac76bf2e.tar.bz2
Merge topic 'fix-try_compile-library-spaces'
e65ef08 try_compile: Fix quoting of libraries in generated CMakeLists.txt
-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..ebfcae0 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 += "\"" + argv[i] + "\" ";
cmTarget *tgt = this->Makefile->FindTargetToUse(argv[i].c_str());
if (!tgt)
{