[WIP] Document the %cmake_generator macro #1455

Draft
lecris wants to merge 1 commit from cmake/generator into main
Member
Companion to https://src.fedoraproject.org/rpms/cmake/pull-request/51 change proposal
Owner

So, the packagers are supposed to redefine this?

IIRC the rule of thumb (not always followed) usually is that such macros are prefixed with underscore(s).

So, the packagers are supposed to redefine this? IIRC the rule of thumb (not always followed) usually is that such macros are prefixed with underscore(s).
Author
Member

So, the packagers are supposed to redefine this?

Yes. Technically also undefine them or add extra -G to the %cmake, but don't want to over-complicate the documentation there.

IIRC the rule of thumb (not always followed) usually is that such macros are prefixed with underscore(s).

No objection to that either. @ngompa mentioned a similar suggestion in the linked PR.

> So, the packagers are supposed to redefine this? Yes. Technically also undefine them or add extra `-G` to the `%cmake`, but don't want to over-complicate the documentation there. > IIRC the rule of thumb (not always followed) usually is that such macros are prefixed with underscore(s). No objection to that either. @ngompa mentioned a similar suggestion in the linked PR.
Owner

Yeah add the leading underscore and then this is good.

Yeah add the leading underscore and then this is good.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin cmake/generator:cmake/generator
git switch cmake/generator

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff cmake/generator
git switch cmake/generator
git rebase main
git switch main
git merge --ff-only cmake/generator
git switch cmake/generator
git rebase main
git switch main
git merge --no-ff cmake/generator
git switch main
git merge --squash cmake/generator
git switch main
git merge --ff-only cmake/generator
git switch main
git merge cmake/generator
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
packaging/guidelines!1455
No description provided.