QMake plugin fix

Discussion about CodeLite development process and patches
NTSFka
CodeLite Enthusiast
Posts: 10
Joined: Sat Nov 30, 2013 12:57 pm
Genuine User: Yes
IDE Question: C++
Location: Czech Republic
Contact:

QMake plugin fix

Post 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