Просмотр исходного кода

BUG: fix #8203: codeblocks + mingw doesn't like the extra quotes around the
path to the makefile if it contains spaces, under Linux it works with spaces

Alex

Alexander Neundorf 17 лет назад
Родитель
Сommit
fcc97a4f3c
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      Source/cmExtraCodeBlocksGenerator.cxx

+ 7 - 0
Source/cmExtraCodeBlocksGenerator.cxx

@@ -418,6 +418,13 @@ std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
     command += "" ";
     command += target;
     }
+  else if (strcmp(this->GlobalGenerator->GetName(), "MinGW Makefiles")==0)
+    {
+    command += " -f ";
+    command += makefile;
+    command += " ";
+    command += target;
+    }
   else
     {
     command += " -f "";