//TODO: adjust for windows and mac
#ifdef _WIN32
// ------ Windows
- //\\..\\IDE\\VCExpress.exe \"" + this->buildPath + CDMUtilities::SLASH + this->nameProject + ".sln\"
-// std::string command = "\"" + std::string(getenv("VS90COMNTOOLS")) + "..\\IDE\\VCExpress.exe\" \"" + this->buildPath + CDMUtilities::SLASH + this->nameProject + ".sln\" &";
- std::string command = "\"\"%VS90COMNTOOLS%..\\IDE\\VCExpress.exe\" \"" + this->buildPath + CDMUtilities::SLASH + this->nameProject + ".sln\" &\"";
- command = "start cmd.exe /k " + command + " &";
- if(0 == system(command.c_str()))
+ std::string command = "start \"\" \"" + this->buildPath + CDMUtilities::SLASH + this->nameProject + ".sln\"";
+ //wxMessageBox(crea::std2wx(command), wxT("Project Compilation - Check!"));
+ if(0 == system(command.c_str()))
return true;
else
{
- result = new std::string("An error has happened running: \"" + command + "\". Please make sure to have visual c++ express installed and to have the VS90COMNTOOLS environment variable set.");
+ result = new std::string("An error has happened running: \"" + command + "\". Please make sure to have visual c++ installed.");
return false;
}
#elif __APPLE__