Skip to content

Define CMake components to allow docs to be installed separately#4276

Merged
vitaut merged 1 commit intofmtlib:masterfrom
carlsmedstad:define-install-components
Dec 26, 2024
Merged

Define CMake components to allow docs to be installed separately#4276
vitaut merged 1 commit intofmtlib:masterfrom
carlsmedstad:define-install-components

Conversation

@carlsmedstad
Copy link
Copy Markdown
Contributor

Define two Cmake components, core and doc, which can be installed separately. This facilitates packagers who want to package docs in a separate package.

After this change it's possible to install only core files with:

cmake --install build --component core

And only install documentation with:

cmake --install build --component doc

When no component is specified, the behaviour is unchanged, i.e. if documentation was built, it will be installed.

Define two components, core and doc, which can be installed separately.
This facilitates packagers who want to package docs in a separate
package.

After this change it's possible to install only core files with:

     cmake --install build --component core

And only install documentation with:

     cmake --install build --component doc

When no component is specified, the behaviour is unchanged, i.e. if
documentation was built, it will be installed.
@vitaut vitaut merged commit 5fa4bdd into fmtlib:master Dec 26, 2024
@vitaut
Copy link
Copy Markdown
Contributor

vitaut commented Dec 26, 2024

Merged, thanks!

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.

2 participants