diff options
author | Brad King <brad.king@kitware.com> | 2013-05-31 13:33:54 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-05-31 13:33:54 (GMT) |
commit | 5377ac42896402510571fa0ee26c6bf32f132e21 (patch) | |
tree | 074fd1ff023ee937fd358ada5eff2b84f1defa6e | |
parent | 1f73d65177991354c3c27683bf3dbae45082d460 (diff) | |
parent | e5375442ff20fde45e70de318c5aa2f1e4bb190a (diff) | |
download | CMake-5377ac42896402510571fa0ee26c6bf32f132e21.zip CMake-5377ac42896402510571fa0ee26c6bf32f132e21.tar.gz CMake-5377ac42896402510571fa0ee26c6bf32f132e21.tar.bz2 |
Merge topic 'fix-try_compile-library-spaces'
e537544 try_compile: Trim whitespace from LINK_LIBRARIES entries
-rw-r--r-- | Source/cmCoreTryCompile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx index ebfcae0..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) { |