Skip to content

Changes

Summary

  1. Adjust configuration to fit well with OpenModelica. (#1245) (details)
Commit 1293f56a8e0586e3ce7a60fd92164a5ee756d5d0 by Mahder Gebremedhin
Adjust configuration to fit well with OpenModelica. (#1245)

- OMSimulator standalone has no issues and works just fine. However, we need to consider some things when it is being built as part of OpenModelica.

      - Sindials exists in OpenModelica's 3rdParty as well as OMSimulator's
        3rdParty. It creates the same named targets in both. This is not
        allowed. So if OMSimulator is part of OpenModelica (not standalone)
        skip adding its 3rdParty/Sundials and just use the targets already
        added by OpenModelica. Just create aliases for them.

      - FMIL continues to create issues as usual. This time from across
        the horizon. FMIL comes with `minizip `(among other things) and uses
        it in the usual contrived FMIL way. OMSimulator also comes with its
        own `minizip`. So, as a workaround, just rename OMSimulator's `minizip` to `oms_minizip`
        and use it with that name. It should be fine since it is only used
        locally and is not supposed to be installed anyway.
The file was modified CMakeLists.txt (diff)
The file was modified 3rdParty (diff)