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

Add a cmake option to make flashfetch targets optional #1455

Merged
merged 1 commit into from
Dec 21, 2024
Merged

Add a cmake option to make flashfetch targets optional #1455

merged 1 commit into from
Dec 21, 2024

Conversation

Antiz96
Copy link
Contributor

@Antiz96 Antiz96 commented Dec 21, 2024

Introduces the -DBUILD_FLASHFETCH='ON'/'OFF' build option so one can skip the flashfetch target (both from executable and install targets, option at ON by default to preserve compatibility with the current default behavior).
This is useful when distributing pre-built downstream packages (e.g. for Linux distributions packaging fastfetch) as building and shipping the flashfetch binary in such pre-built packages serves little to no purpose.

Introduces the `-DBUILD_FLASHFETCH='ON'/'OFF'` build option so one can skip the `flashfetch` target (both from executable and install targets, option at `ON` by default to preserve compatibility with the current default behavior).
This is useful when distributing pre-built downstream packages (e.g. for Linux distributions packaging `fastfetch`) as building and shipping the `flashfetch` binary in such pre-built packages serves little to no purpose.
@Antiz96 Antiz96 changed the title Add a cmake option to make flashfetch target optional Add a cmake option to make flashfetch targets optional Dec 21, 2024
@CarterLi CarterLi merged commit dd41dfa into fastfetch-cli:dev Dec 21, 2024
16 checks passed
@CarterLi
Copy link
Member

Thanks!

algitbot pushed a commit to alpinelinux/aports that referenced this pull request Dec 29, 2024
https://github.com/fastfetch-cli/fastfetch/releases/tag/2.33.0

Tiny improvements made to the APKBUILD:

- Use the new `-DBUILD_FLASHFETCH` option to disable building the `flashfetch` binary, which makes little to no purpose being built & shipped in a prebuilt package (see fastfetch-cli/fastfetch#627 & fastfetch-cli/fastfetch#1455, as well as the related note in the above changelog)

- Use the `-DBUILD_TEST` option to build tests and tests binaries, allowing to simply use `ctest` during `check()`

- Do not specify targets to build during `cmake build` so every needed targets are built (including current and future tests binaries required during `check()`).
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