Skip to content

Only force CMAKE_INSTALL_PREFIX if the user didn't specify it.#4603

Merged
maltelenz merged 2 commits intomasterfrom
maltelenz-unforced-installprefix
Mar 26, 2025
Merged

Only force CMAKE_INSTALL_PREFIX if the user didn't specify it.#4603
maltelenz merged 2 commits intomasterfrom
maltelenz-unforced-installprefix

Conversation

@maltelenz
Copy link
Copy Markdown
Contributor

Forcing an override of CMAKE_INSTALL_PREFIX is not friendly, since users might expect to set it themselves when they run cmake.

We have a real-world use case where we do set this ourselves when running cmake. We build the libraries on each platform separately, setting CMAKE_INSTALL_PREFIX to a nice place outside of the source. Only afterwards do we combine all of the results from each platform and put them in the final location.

Forcing an override of `CMAKE_INSTALL_PREFIX` is not friendly, since users might expect to set it themselves when they run cmake.
@beutlich beutlich added L: Resources Issue addresses Modelica/Resources (excl. C-Sources) V: 4.2.0-dev Issue originates in MSL v4.2.0-dev (and is not present in earlier releases) labels Mar 26, 2025
Copy link
Copy Markdown
Member

@beutlich beutlich left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@HansOlsson HansOlsson left a comment

Choose a reason for hiding this comment

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

ok

@maltelenz maltelenz merged commit be949b2 into master Mar 26, 2025
2 checks passed
@maltelenz maltelenz deleted the maltelenz-unforced-installprefix branch March 26, 2025 10:50
@beutlich beutlich added this to the MSL4.2.0 milestone Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: Resources Issue addresses Modelica/Resources (excl. C-Sources) 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.

3 participants