Page 1 of 1

QMake plugin fix

Posted: Sat Jan 04, 2014 9:08 pm
by NTSFka
Hi,

I've found a bug in the QMake plugin. The current version is trying to call make with makefile as target not as makefile.

Code: Select all

diff --git a/QmakePlugin/qmakeplugin.cpp b/QmakePlugin/qmakeplugin.cpp
index 5a4f5e1..3e2a363 100644
--- a/QmakePlugin/qmakeplugin.cpp
+++ b/QmakePlugin/qmakeplugin.cpp
@@ -362,7 +362,7 @@ wxString QMakePlugin::DoGetBuildCommand(const wxString &project, const wxString
     wxString command = bldConf->GetCompiler()->GetTool("MAKE");
     command.Replace(wxT("\\"), wxT("/"));
 
-    cmd << command << wxT(" \"") << p->GetName() << wxT(".mk\"");
+    cmd << command << wxT(" -f \"") << p->GetName() << wxT(".mk\"");
     return cmd;
 }
Jiri