Skip to content

Commit

Permalink
- Use --prefix as the guess of the omc executable if OPENMODELICAHOME…
Browse files Browse the repository at this point in the history
… is not given (not all platforms install omc on the PATH)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8026 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 26, 2011
1 parent 701078f commit 41f910b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/OMCProxy.cpp
Expand Up @@ -45,6 +45,7 @@
#include "OMCThread.h"
#include "StringHandler.h"
#include <omniORB4/CORBA.h>
#include "../../Compiler/runtime/config.h"

//! @class OMCProxy
//! @brief It contains the reference of the CORBA object used to communicate with the OpenModelica Compiler.
Expand Down Expand Up @@ -144,7 +145,7 @@ bool OMCProxy::startServer()
throw std::runtime_error(GUIMessages::getMessage(GUIMessages::OPEN_MODELICA_HOME_NOT_FOUND).toStdString());
omcPath = QString( omhome ) + "bin/omc.exe";
#else /* unix */
omcPath = (omhome ? QString(omhome)+"bin/omc" : "omc");
omcPath = (omhome ? QString(omhome)+"bin/omc" : QString(CONFIG_DEFAULT_OPENMODELICAHOME) + "/bin/omc");
#endif

// Check the IOR file created by omc.exe
Expand Down

0 comments on commit 41f910b

Please sign in to comment.