[Cmake-commits] CMake branch, next, updated. v2.8.10.2-2476-gef610df

Brad King brad.king at kitware.com
Tue Mar 12 17:19:55 EDT 2013


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  ef610df15517b09b8ba8068b081c894636da71ae (commit)
       via  92a2ab70b61f978e96c8a6eaae0cce1c7422a59f (commit)
      from  c7820400d2d01f2853f8e1115f4c275b95236be0 (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=ef610df15517b09b8ba8068b081c894636da71ae
commit ef610df15517b09b8ba8068b081c894636da71ae
Merge: c782040 92a2ab7
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Mar 12 17:19:45 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Mar 12 17:19:45 2013 -0400

    Merge topic 'property-link-depends-no-crash' into next
    
    92a2ab7 Avoid crash when checking property link dependencies without link info


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=92a2ab70b61f978e96c8a6eaae0cce1c7422a59f
commit 92a2ab70b61f978e96c8a6eaae0cce1c7422a59f
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Mar 12 17:13:42 2013 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Tue Mar 12 17:17:24 2013 -0400

    Avoid crash when checking property link dependencies without link info
    
    Teach the isLinkDependentProperty helper added by commit e9879910 (Make
    INTERFACE determined properties readable in generator expressions,
    2013-01-19) to return early if no link information is available.

diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 003f3d8..c8f532e 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -4839,6 +4839,10 @@ bool isLinkDependentProperty(cmTarget *tgt, const std::string &p,
                              const char *config)
 {
   cmComputeLinkInformation *info = tgt->GetLinkInformation(config);
+  if(!info)
+    {
+    return false;
+    }
 
   const cmComputeLinkInformation::ItemVector &deps = info->GetItems();
 

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

Summary of changes:
 Source/cmTarget.cxx |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list