cmTarget: Join strings conditionally.

This commit is contained in:
Stephen Kelly 2015-08-29 18:32:24 +02:00
parent bf28b7874b
commit 01e666c70e
1 changed files with 2 additions and 2 deletions

View File

@ -768,9 +768,9 @@ void cmTarget::GetSourceFiles(std::vector<cmSourceFile*> &files,
//----------------------------------------------------------------------------
void cmTarget::AddTracedSources(std::vector<std::string> 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();