BUG: make paths with spaces work in CodeBlocks
-gcc is always gcc and not mingw Alex
This commit is contained in:
parent
69e9848fb4
commit
c8276401c6
@ -302,16 +302,9 @@ std::string cmExtraCodeBlocksGenerator::GetCBCompilerId(const cmMakefile* mf)
|
|||||||
compiler = "ow";
|
compiler = "ow";
|
||||||
}
|
}
|
||||||
else if (compilerId == "GNU")
|
else if (compilerId == "GNU")
|
||||||
{
|
|
||||||
if (hostSystemName == "Windows")
|
|
||||||
{
|
|
||||||
compiler = "mingw";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
compiler = "gcc";
|
compiler = "gcc";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return compiler;
|
return compiler;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -348,16 +341,16 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
|
|||||||
std::string command = make;
|
std::string command = make;
|
||||||
if (strcmp(this->GlobalGenerator->GetName(), "NMake Makefiles")==0)
|
if (strcmp(this->GlobalGenerator->GetName(), "NMake Makefiles")==0)
|
||||||
{
|
{
|
||||||
command += " /NOLOGO /f \\\"";
|
command += " /NOLOGO /f "";
|
||||||
command += makefile;
|
command += makefile;
|
||||||
command += "\\\" ";
|
command += "" ";
|
||||||
command += target;
|
command += target;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
command += " -f ";
|
command += " -f "";
|
||||||
command += makefile;
|
command += makefile;
|
||||||
command += " ";
|
command += "" ";
|
||||||
command += target;
|
command += target;
|
||||||
}
|
}
|
||||||
return command;
|
return command;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user