From 01e666c70e9c83ebd8c200d121b706868f69e617 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 29 Aug 2015 18:32:24 +0200 Subject: cmTarget: Join strings conditionally. --- Source/cmTarget.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index bb44956..7fd8d86 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -768,9 +768,9 @@ void cmTarget::GetSourceFiles(std::vector &files, //---------------------------------------------------------------------------- void cmTarget::AddTracedSources(std::vector const& srcs) { - std::string srcFiles = cmJoin(srcs, ";"); - if (!srcFiles.empty()) + if (!srcs.empty()) { + std::string srcFiles = cmJoin(srcs, ";"); this->Internal->SourceFilesMap.clear(); this->LinkImplementationLanguageIsContextDependent = true; cmListFileBacktrace lfbt = this->Makefile->GetBacktrace(); -- cgit v0.12