summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-03 19:28:41 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-06 13:42:31 (GMT)
commit35aab9df9f299d62edaa6ce611aa30614deb9e9d (patch)
treeb814a438e4e05b23807dd2ffd6dd8a26091f8cdb /Source/cmGeneratorTarget.cxx
parent22590805bffe74c3b4998152556561a2c2b6d177 (diff)
downloadCMake-35aab9df9f299d62edaa6ce611aa30614deb9e9d.zip
CMake-35aab9df9f299d62edaa6ce611aa30614deb9e9d.tar.gz
CMake-35aab9df9f299d62edaa6ce611aa30614deb9e9d.tar.bz2
Reject TARGET_PDB_FILE for imported targets instead of crashing
Reported-by: Justin Borodinsky <justin.borodinsky@gmail.com>
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index c831704..e490368 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -1248,6 +1248,7 @@ void cmGeneratorTarget::ComputeLinkClosure(const std::string& config,
UNORDERED_SET<std::string> languages;
cmTarget::LinkImplementation const* impl =
this->Target->GetLinkImplementation(config);
+ assert(impl);
for(std::vector<std::string>::const_iterator li = impl->Languages.begin();
li != impl->Languages.end(); ++li)
{