summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-19 14:31:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-24 18:05:37 (GMT)
commit223f4a662fbe2caff92186e0875737fe3727a4fd (patch)
treeb52549bdaea808e6086ba3a44eaa826d2ba10f37 /Source/cmLocalGenerator.cxx
parentae026f5458c5c919031a41310321ae26cd56fae0 (diff)
downloadCMake-223f4a662fbe2caff92186e0875737fe3727a4fd.zip
CMake-223f4a662fbe2caff92186e0875737fe3727a4fd.tar.gz
CMake-223f4a662fbe2caff92186e0875737fe3727a4fd.tar.bz2
cmLocalGenerator: Simplify condition.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx21
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index edb644d..db464d6 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -199,18 +199,15 @@ void cmLocalGenerator::GenerateTestFiles()
(*gi)->Compute(this);
(*gi)->Generate(fout, config, configurationTypes);
}
- if (!this->Children.empty())
- {
- size_t i;
- for(i = 0; i < this->Children.size(); ++i)
- {
- // TODO: Use add_subdirectory instead?
- fout << "subdirs(";
- std::string outP =
- this->Children[i]->GetMakefile()->GetCurrentBinaryDirectory();
- fout << this->Convert(outP,START_OUTPUT);
- fout << ")" << std::endl;
- }
+ size_t i;
+ for(i = 0; i < this->Children.size(); ++i)
+ {
+ // TODO: Use add_subdirectory instead?
+ fout << "subdirs(";
+ std::string outP =
+ this->Children[i]->GetMakefile()->GetCurrentBinaryDirectory();
+ fout << this->Convert(outP,START_OUTPUT);
+ fout << ")" << std::endl;
}
}