Skip to content

CMake: add install control option#3

Merged
tritao merged 1 commit into
freecad-masterfrom
coin-install-option
Jul 5, 2026
Merged

CMake: add install control option#3
tritao merged 1 commit into
freecad-masterfrom
coin-install-option

Conversation

@tritao

@tritao tritao commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Adds a COIN_INSTALL option, defaulting to ON, so embedding projects can build Coin without inheriting Coin's standalone install rules.

Motivation:
FreeCAD's bundled Coin build currently pulls in Coin's install rules, which can install standalone Coin files such as share/Coin/conf/coin-default.cfg, coin-config, pkg-config/CMake package metadata, headers, and data files into the FreeCAD install prefix. Downstream packages that also depend on system Coin can then hit file conflicts.

This keeps standalone Coin behavior unchanged by default, while giving embedders an explicit upstream-owned switch.

@tritao

tritao commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator Author

@kadet1090 @chennes @Lgt2x Can anyone check this one out to unbreak distro builds

@chennes chennes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is right. It builds and launches on Windows with LibPack 3.5.3 (the first one that doesn't include Coin and Pivy), in both release and debug modes. As far as I can tell everything worked well in those builds (though I had to also apply the pivy fixes from yesterday so it's always possible I screwed something up!)

@Lgt2x Lgt2x left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fix looks fine

@tritao tritao merged commit 60c8d15 into freecad-master Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants