diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-10-11 12:26:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-10-24 07:14:13 (GMT) |
commit | 63378baa1ceacbfdd52753e6dc7228ccfc53f4e5 (patch) | |
tree | d6ec621261c0fd02a85b864ae5195bead778e973 /Source/cmQtAutoGenerators.cxx | |
parent | 97f1aa39da3e56ea4839e918f05928440d9d9dfa (diff) | |
download | CMake-63378baa1ceacbfdd52753e6dc7228ccfc53f4e5.zip CMake-63378baa1ceacbfdd52753e6dc7228ccfc53f4e5.tar.gz CMake-63378baa1ceacbfdd52753e6dc7228ccfc53f4e5.tar.bz2 |
Rename some variables to reflect broader scope.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index 391f7bb..b41ef75 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -206,7 +206,7 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) cmMakefile* makefile = target->GetMakefile(); const char* targetName = target->GetName(); - // create a custom target for running automoc at buildtime: + // create a custom target for running generators at buildtime: std::string autogenTargetName = targetName; autogenTargetName += "_automoc"; @@ -230,8 +230,9 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) "", makefile->GetCurrentOutputDirectory()); std::vector<std::string> depends; - std::string automocComment = "Automoc for target "; - automocComment += targetName; + std::string tools = "moc"; + std::string autogenComment = "Automatic " + tools + " for target "; + autogenComment += targetName; #if defined(_WIN32) && !defined(__CYGWIN__) bool usePRE_BUILD = false; @@ -254,7 +255,7 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) // PRE_BUILD will work for an OBJECT_LIBRARY in this specific case. std::vector<std::string> no_output; cmCustomCommand cc(makefile, no_output, depends, - commandLines, automocComment.c_str(), + commandLines, autogenComment.c_str(), workingDirectory.c_str()); cc.SetEscapeOldStyle(false); cc.SetEscapeAllowMakeVars(true); @@ -263,21 +264,21 @@ void cmQtAutoGenerators::SetupAutoGenerateTarget(cmTarget* target) else #endif { - cmTarget* automocTarget = makefile->AddUtilityCommand( + cmTarget* autogenTarget = makefile->AddUtilityCommand( autogenTargetName.c_str(), true, workingDirectory.c_str(), depends, - commandLines, false, automocComment.c_str()); + commandLines, false, autogenComment.c_str()); // Set target folder const char* automocFolder = makefile->GetCMakeInstance()->GetProperty( "AUTOMOC_TARGETS_FOLDER"); if (automocFolder && *automocFolder) { - automocTarget->SetProperty("FOLDER", automocFolder); + autogenTarget->SetProperty("FOLDER", automocFolder); } else { // inherit FOLDER property from target (#13688) - copyTargetProperty(automocTarget, target, "FOLDER"); + copyTargetProperty(autogenTarget, target, "FOLDER"); } target->AddUtility(autogenTargetName.c_str()); |