Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust configuration to fit well with OpenModelica. #1245

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

mahge
Copy link
Contributor

@mahge mahge commented Aug 15, 2023

  • 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.

    • Sundials 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.

  - 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.
@mahge mahge added the CI/Update Submodules Allow a pull request to update submodules label Aug 15, 2023
@mahge mahge self-assigned this Aug 15, 2023
@mahge mahge merged commit 1293f56 into OpenModelica:master Aug 15, 2023
2 checks passed
@mahge mahge deleted the improve_cmake_config branch August 15, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/Update Submodules Allow a pull request to update submodules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant