#include "CDMUtilities.h"
#include "creaWx.h"
#include "wx/dir.h"
+#include <wx/config.h>
modelCDMProject::modelCDMProject()
{
std::string modelCDMProject::GetBuildInstruction() const
{
- std::string makeComm = "make -C \"" + this->buildPath + "\""; /*> \"" + this->buildPath + CDMUtilities::SLASH + "building.log\" 2>&1";*/
+ wxConfigBase* pConfig = wxConfigBase::Get();
+ std::string commandline = crea::wx2std(pConfig->Read(wxT("BUILD_COMMAND"), crea::std2wx(CDMUtilities::BUILD_COMMAND)));
+
+
+ std::string makeComm = "cd \"" + this->buildPath + "\";" + commandline;// -C \"" + this->buildPath + "\""; /*> \"" + this->buildPath + CDMUtilities::SLASH + "building.log\" 2>&1";*/
return makeComm;
}