Skip to content

Comments

Add doc how to build external C libraries with CMake#4734

Open
beutlich wants to merge 1 commit intomodelica:masterfrom
beutlich:update-cmake-doc
Open

Add doc how to build external C libraries with CMake#4734
beutlich wants to merge 1 commit intomodelica:masterfrom
beutlich:update-cmake-doc

Conversation

@beutlich
Copy link
Member

@beutlich beutlich commented Feb 7, 2026

Resolves #4696.

@beutlich beutlich added documentation Issue addresses the documentation V: 4.2.0-dev Issue originates in MSL v4.2.0-dev (and is not present in earlier releases) labels Feb 7, 2026
@beutlich beutlich added this to the MSL4.2.0 milestone Feb 7, 2026
@AHaumer AHaumer requested a review from HansOlsson February 17, 2026 19:15
@AHaumer
Copy link
Contributor

AHaumer commented Feb 17, 2026

Nice explanation, but I do not want to build my own External C libraries, I just want to simulate model from the master branch.

Copy link
Contributor

@maltelenz maltelenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine.

Comment on lines +33 to +34
* `MODELICA_COPY_TABLE_DATA:BOOL=ON`
This flag avoids an undesired memory optimization of shallow-copying the passed table arrays.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is bit too cryptic for me, I had to read it more than once to understand which setting avoided the problems - and then think more to understand which problems.

I would suggest something like the following.

Suggested change
* `MODELICA_COPY_TABLE_DATA:BOOL=ON`
This flag avoids an undesired memory optimization of shallow-copying the passed table arrays.
* `MODELICA_COPY_TABLE_DATA:BOOL=ON`
Copy table data in constructor. Disabling this optimizes memory use, but requires that the caller keeps the data.

The second sentence could be skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issue addresses the documentation V: 4.2.0-dev Issue originates in MSL v4.2.0-dev (and is not present in earlier releases)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error simulating tables in Dymola

4 participants