summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-29 19:19:15 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-29 19:19:15 (GMT)
commitc8276401c6eef8f3198763ecaccd2f039802d3fd (patch)
tree07f05460fe50bb4edf74204be169164afbc0190d /Source/cmExtraCodeBlocksGenerator.cxx
parent69e9848fb44ab3f27bf400666a7d2f16ed74f5a6 (diff)
downloadCMake-c8276401c6eef8f3198763ecaccd2f039802d3fd.zip
CMake-c8276401c6eef8f3198763ecaccd2f039802d3fd.tar.gz
CMake-c8276401c6eef8f3198763ecaccd2f039802d3fd.tar.bz2
BUG: make paths with spaces work in CodeBlocks
-gcc is always gcc and not mingw Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index fc5c8c0..a5657d7 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -303,14 +303,7 @@ std::string cmExtraCodeBlocksGenerator::GetCBCompilerId(const cmMakefile* mf)
}
else if (compilerId == "GNU")
{
- if (hostSystemName == "Windows")
- {
- compiler = "mingw";
- }
- else
- {
- compiler = "gcc";
- }
+ compiler = "gcc";
}
return compiler;
}
@@ -348,16 +341,16 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
std::string command = make;
if (strcmp(this->GlobalGenerator->GetName(), "NMake Makefiles")==0)
{
- command += " /NOLOGO /f \\\"";
+ command += " /NOLOGO /f &quot;";
command += makefile;
- command += "\\\" ";
+ command += "&quot; ";
command += target;
}
else
{
- command += " -f ";
+ command += " -f &quot;";
command += makefile;
- command += " ";
+ command += "&quot; ";
command += target;
}
return command;