This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  32d5f9222eeca7a9ac0e15e7f36d64f8d6932fa6 (commit)
       via  e65ef08bf2719ffd1cc4226f9594ff7127ad8b5e (commit)
      from  8252abe4f37642139ee239aec67503a3ab0cdfa2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=32d5f9222eeca7a9ac0e15e7f36d64f8d6932fa6
commit 32d5f9222eeca7a9ac0e15e7f36d64f8d6932fa6
Merge: 8252abe e65ef08
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Fri May 24 16:33:55 2013 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Fri May 24 16:33:55 2013 -0400

    Merge topic 'fix-try_compile-library-spaces' into next
    
    e65ef08 try_compile: Fix quoting of libraries in generated CMakeLists.txt


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e65ef08bf2719ffd1cc4226f9594ff7127ad8b5e
commit e65ef08bf2719ffd1cc4226f9594ff7127ad8b5e
Author:     Brad King <brad.k...@kitware.com>
AuthorDate: Fri May 24 16:27:31 2013 -0400
Commit:     Brad King <brad.k...@kitware.com>
CommitDate: Fri May 24 16:30:26 2013 -0400

    try_compile: Fix quoting of libraries in generated CMakeLists.txt
    
    Since commit 236133e7 (Handle targets in the LINK_LIBRARIES of
    try_compile, 2013-02-09) libraries passed to the new LINK_LIBRARIES
    option of try_compile are not quoted inside the generated CMakeLists.txt
    file.  Quote the library names so they re-parse correctly when loaded by
    CMake to configure and generate the test project.
    
    Reported-by: Bogdan Cristea <crist...@gmail.com>

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

-----------------------------------------------------------------------

Summary of changes:
 Source/cmCoreTryCompile.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits

Reply via email to