From 271bf10263893e0ec2e0c9d20d2c0220262998ec Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 12 Sep 2013 17:12:42 +0200 Subject: [PATCH] Fix CMP0022 warning when no old-style property is set The string could be null at this point. --- Source/cmTarget.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ce0d0f20d..ac655da12 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