Browse Source

Merge topic 'fix-try_compile-library-spaces'

e537544 try_compile: Trim whitespace from LINK_LIBRARIES entries
Brad King 12 years ago
parent
commit
5377ac4289
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmCoreTryCompile.cxx

+ 1 - 1
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)
           {