summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-11-11 22:06:09 +0100
committerAlex Neundorf <neundorf@kde.org>2010-11-11 22:06:09 +0100
commita02987a0df46121ba8dfe07374412d9b20b2606b (patch)
tree81c87655cd08370f8e68d8575074636d343ff24f /Source
parent7b1421b88553f4c1fa685be5bd84a5e950490317 (diff)
downloadcmake-a02987a0df46121ba8dfe07374412d9b20b2606b.tar.gz
Don't enforce VERBOSE makefiles for the CodeBlocks generator
Instead of enforcing verbose makefile, now the generated build command includes "VERBOSE=1" so the output will be verbose when building in C::B. Also removed the now unused setForceVerboseMakefiles(). Alex
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx4
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx1
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.h11
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx3
4 files changed, 4 insertions, 15 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 822d62ae4b..191ad2c7fc 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -70,7 +70,6 @@ void cmExtraCodeBlocksGenerator::SetGlobalGenerator(
cmGlobalUnixMakefileGenerator3* mf = (cmGlobalUnixMakefileGenerator3*)
generator;
mf->SetToolSupportsColor(false);
- mf->SetForceVerboseMakefiles(true);
}
void cmExtraCodeBlocksGenerator::Generate()
@@ -695,6 +694,7 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
command += " /NOLOGO /f &quot;";
command += makefileName;
command += "&quot; ";
+ command += " VERBOSE=1 ";
command += target;
}
else if (strcmp(this->GlobalGenerator->GetName(), "MinGW Makefiles")==0)
@@ -705,6 +705,7 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
command += " -f &quot;";
command += makefileName;
command += "&quot; ";
+ command += " VERBOSE=1 ";
command += target;
}
else
@@ -713,6 +714,7 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
command += " -f &quot;";
command += makefileName;
command += "&quot; ";
+ command += " VERBOSE=1 ";
command += target;
}
return command;
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 0f2c5f9cff..d9a341c38c 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -24,7 +24,6 @@ cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3()
this->ForceUnixPaths = true;
this->FindMakeProgramFile = "CMakeUnixFindMake.cmake";
this->ToolSupportsColor = true;
- this->ForceVerboseMakefiles = false;
this->NoRuleMessages = false;
#if defined(_WIN32) || defined(__VMS)
diff --git a/Source/cmGlobalUnixMakefileGenerator3.h b/Source/cmGlobalUnixMakefileGenerator3.h
index a36fb5802c..cdc946084b 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.h
+++ b/Source/cmGlobalUnixMakefileGenerator3.h
@@ -112,16 +112,6 @@ public:
/** Record per-target progress information. */
void RecordTargetProgress(cmMakefileTargetGenerator* tg);
- /**
- * If true, the CMake variable CMAKE_VERBOSE_MAKEFILES doesn't have effect
- * anymore. Set it to true when writing a generator where short output
- * doesn't make sense, e.g. because the full output is parsed by an
- * IDE/editor.
- */
- bool GetForceVerboseMakefiles() { return this->ForceVerboseMakefiles; }
- void SetForceVerboseMakefiles(bool enable)
- {this->ForceVerboseMakefiles=enable;}
-
protected:
void WriteMainMakefile2();
void WriteMainCMakefile();
@@ -169,7 +159,6 @@ protected:
// in the rule to satisfy the make program.
std::string EmptyRuleHackCommand;
- bool ForceVerboseMakefiles;
bool NoRuleMessages;
// Store per-target progress counters.
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 51566e0f41..c5d8c0df55 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -722,8 +722,7 @@ cmLocalUnixMakefileGenerator3
// "VERBOSE=1" to be added as a make variable which will change the
// name of this special target. This gives a make-time choice to
// the user.
- if((this->Makefile->IsOn("CMAKE_VERBOSE_MAKEFILE"))
- || (gg->GetForceVerboseMakefiles()))
+ if(this->Makefile->IsOn("CMAKE_VERBOSE_MAKEFILE"))
{
makefileStream
<< "# Produce verbose output by default.\n"