summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-09-12 15:12:42 (GMT)
committerBrad King <brad.king@kitware.com>2013-09-13 15:34:08 (GMT)
commit271bf10263893e0ec2e0c9d20d2c0220262998ec (patch)
tree9fbe06677e3485931d25d2b0675ed61412566391 /Source/cmTarget.cxx
parent81d2793e920a90a627ca47bfd68f24dacf27ca72 (diff)
downloadCMake-271bf10263893e0ec2e0c9d20d2c0220262998ec.zip
CMake-271bf10263893e0ec2e0c9d20d2c0220262998ec.tar.gz
CMake-271bf10263893e0ec2e0c9d20d2c0220262998ec.tar.bz2
Fix CMP0022 warning when no old-style property is set
The string could be null at this point.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ce0d0f2..ac655da 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -6449,7 +6449,7 @@ bool cmTarget::ComputeLinkInterface(const char* config, LinkInterface& iface,
<< newExplicitLibraries
<< "\n"
<< linkIfaceProp << ":\n "
- << explicitLibraries << "\n";
+ << (explicitLibraries ? explicitLibraries : "(empty)") << "\n";
this->Makefile->IssueMessage(cmake::AUTHOR_WARNING, w.str());
}
// Fall through