Skip to content

Commit

Permalink
Add OMEdit git hash in omeditcommunication.log file.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 1, 2016
1 parent d189425 commit 678bb3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -38,6 +38,9 @@
#include <OMC/Parser/OMCOutputLexer.h>
#include <OMC/Parser/OMCOutputParser.h>
#include "meta/meta_modelica.h"
#ifdef WIN32
#include "version.h"
#endif

extern "C" {
void (*omc_assert)(threadData_t*,FILE_INFO info,const char *msg,...) __attribute__((noreturn)) = omc_assert_function;
Expand Down Expand Up @@ -255,6 +258,9 @@ bool OMCProxy::initializeOMC()
setCommandLineOptions("+locale=" + settingsLocale.name());
// get OpenModelica version
Helper::OpenModelicaVersion = getVersion();
#ifdef WIN32
sendCommand("\"" + QString(GIT_SHA) + "\"");
#endif
// set OpenModelicaHome variable
Helper::OpenModelicaHome = mpOMCInterface->getInstallationDirectoryPath();
#ifdef WIN32
Expand Down

0 comments on commit 678bb3b

Please sign in to comment.