From 32b8f03acc0357121ec8f2b96599d5eeaf38c0b4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 16 Apr 2015 20:06:54 +0200 Subject: [PATCH] cmMakefile: Port users of GetStart* methods to new names. --- Source/cmCPluginAPI.cxx | 4 +- Source/cmExtraCodeBlocksGenerator.cxx | 10 ++-- Source/cmExtraCodeLiteGenerator.cxx | 10 ++-- Source/cmExtraEclipseCDT4Generator.cxx | 4 +- Source/cmExtraQbsGenerator.cxx | 2 +- Source/cmExtraSublimeTextGenerator.cxx | 4 +- Source/cmFLTKWrapUICommand.cxx | 4 +- Source/cmGeneratorTarget.cxx | 4 +- Source/cmGetDirectoryPropertyCommand.cxx | 2 +- Source/cmGlobalBorlandMakefileGenerator.cxx | 2 +- Source/cmGlobalGenerator.cxx | 12 ++--- Source/cmGlobalKdevelopGenerator.cxx | 2 +- Source/cmGlobalNinjaGenerator.cxx | 2 +- Source/cmGlobalUnixMakefileGenerator3.cxx | 14 ++--- Source/cmGlobalVisualStudio6Generator.cxx | 6 +-- Source/cmGlobalVisualStudio7Generator.cxx | 8 +-- Source/cmGlobalVisualStudioGenerator.cxx | 2 +- Source/cmGlobalXCodeGenerator.cxx | 8 +-- Source/cmIncludeCommand.cxx | 2 +- Source/cmIncludeDirectoryCommand.cxx | 2 +- Source/cmInstallTargetGenerator.cxx | 2 +- Source/cmLinkDirectoriesCommand.cxx | 2 +- Source/cmLocalGenerator.cxx | 52 ++++++++++--------- Source/cmLocalGhsMultiGenerator.cxx | 2 +- Source/cmLocalNinjaGenerator.cxx | 4 +- Source/cmLocalUnixMakefileGenerator3.cxx | 18 +++---- Source/cmLocalVisualStudio6Generator.cxx | 18 +++---- Source/cmLocalVisualStudio7Generator.cxx | 14 ++--- Source/cmMakefile.cxx | 8 +-- .../cmMakefileExecutableTargetGenerator.cxx | 6 +-- Source/cmMakefileLibraryTargetGenerator.cxx | 8 +-- Source/cmMakefileTargetGenerator.cxx | 16 +++--- Source/cmNinjaTargetGenerator.cxx | 3 +- Source/cmOutputRequiredFilesCommand.cxx | 2 +- Source/cmQtAutoGenerators.cxx | 4 +- Source/cmTarget.cxx | 8 +-- Source/cmTargetIncludeDirectoriesCommand.cxx | 3 +- Source/cmVisualStudio10TargetGenerator.cxx | 10 ++-- Source/cmake.cxx | 4 +- 39 files changed, 146 insertions(+), 142 deletions(-) diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 4f1fa3ceec..c55ea3597b 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -131,12 +131,12 @@ const char* CCONV cmGetHomeOutputDirectory(void *arg) const char* CCONV cmGetStartDirectory(void *arg) { cmMakefile *mf = static_cast(arg); - return mf->GetStartDirectory(); + return mf->GetCurrentSourceDirectory(); } const char* CCONV cmGetStartOutputDirectory(void *arg) { cmMakefile *mf = static_cast(arg); - return mf->GetStartOutputDirectory(); + return mf->GetCurrentBinaryDirectory(); } const char* CCONV cmGetCurrentDirectory(void *arg) { diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index dfa2cb1af7..e374387def 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -77,7 +77,7 @@ void cmExtraCodeBlocksGenerator::CreateProjectFile( const std::vector& lgs) { const cmMakefile* mf=lgs[0]->GetMakefile(); - std::string outputDir=mf->GetStartOutputDirectory(); + std::string outputDir=mf->GetCurrentBinaryDirectory(); std::string projectName=mf->GetProjectName(); std::string filename=outputDir+"/"; @@ -331,7 +331,7 @@ void cmExtraCodeBlocksGenerator { // Only add the global targets from CMAKE_BINARY_DIR, // not from the subdirs - if (strcmp(makefile->GetStartOutputDirectory(), + if (strcmp(makefile->GetCurrentBinaryDirectory(), makefile->GetHomeOutputDirectory())==0) { this->AppendTarget(fout, ti->first, 0, @@ -550,14 +550,14 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout, const cmMakefile* makefile, const char* compiler) { - std::string makefileName = makefile->GetStartOutputDirectory(); + std::string makefileName = makefile->GetCurrentBinaryDirectory(); makefileName += "/Makefile"; fout<<" \n"; if (target!=0) { int cbTargetType = this->GetCBTargetType(target); - std::string workingDir = makefile->GetStartOutputDirectory(); + std::string workingDir = makefile->GetCurrentBinaryDirectory(); if ( target->GetType()==cmTarget::EXECUTABLE) { // Determine the directory where the executable target is created, and @@ -653,7 +653,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout, else // e.g. all and the GLOBAL and UTILITY targets { fout<<"