summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-08-29 16:32:24 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-06 18:16:20 (GMT)
commit01e666c70e9c83ebd8c200d121b706868f69e617 (patch)
tree14b2e85a6c161a5d72bafa4a82a48d4d7c1ec40a /Source
parentbf28b7874b999224782fac72c5a74020bd6c47d3 (diff)
downloadCMake-01e666c70e9c83ebd8c200d121b706868f69e617.zip
CMake-01e666c70e9c83ebd8c200d121b706868f69e617.tar.gz
CMake-01e666c70e9c83ebd8c200d121b706868f69e617.tar.bz2
cmTarget: Join strings conditionally.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx4
1 files 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<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();