summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-03-12 21:13:42 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-12 21:17:24 (GMT)
commit92a2ab70b61f978e96c8a6eaae0cce1c7422a59f (patch)
tree934ed7d3ee1c41f2315d8faf3928f8d06b77a971 /Source/cmTarget.cxx
parent4515b09731856dc2713c567a48fec1374b317ece (diff)
downloadCMake-92a2ab70b61f978e96c8a6eaae0cce1c7422a59f.zip
CMake-92a2ab70b61f978e96c8a6eaae0cce1c7422a59f.tar.gz
CMake-92a2ab70b61f978e96c8a6eaae0cce1c7422a59f.tar.bz2
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.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 4 insertions, 0 deletions
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();