diff options
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 66007d4..9c7c4b6 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -272,22 +272,19 @@ void cmLocalGenerator::GenerateTestFiles() } if ( this->Children.size()) { - fout << "SUBDIRS("; size_t i; - std::string outDir = this->Makefile->GetStartOutputDirectory(); - outDir += "/"; for(i = 0; i < this->Children.size(); ++i) { - std::string binP = + fout << "ADD_SUBDIRECTORY("; + std::string srcP = + this->Children[i]->GetMakefile()->GetStartDirectory(); + fout << this->Convert(srcP.c_str(),START); + fout << " "; + std::string outP = this->Children[i]->GetMakefile()->GetStartOutputDirectory(); - cmSystemTools::ReplaceString(binP, outDir.c_str(), ""); - if ( i > 0 ) - { - fout << " "; - } - fout << binP.c_str(); + fout << this->Convert(outP.c_str(),START_OUTPUT); + fout << ")" << std::endl; } - fout << ")" << std::endl << std::endl;; } } |