Skip to content

cmake: add type-unordered-set.h and version.h to public headers - #350

Merged
ryanofsky merged 1 commit into
bitcoin-core:masterfrom
ryanofsky:pr/newheaders
Aug 26, 2026
Merged

cmake: add type-unordered-set.h and version.h to public headers#350
ryanofsky merged 1 commit into
bitcoin-core:masterfrom
ryanofsky:pr/newheaders

Conversation

@ryanofsky

@ryanofsky ryanofsky commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

These are useful for building bitcoin core with WITH_EXTERNAL_LIBMULTIPROCESS and having the install target install the complete set of public headers more generally.

This ensures all headers are properly installed, and is useful for
building bitcoin core with WITH_EXTERNAL_LIBMULTIPROCESS.
@DrahtBot

DrahtBot commented Aug 20, 2026

Copy link
Copy Markdown

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK hebasto, xyzconstant

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@hebasto hebasto 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.

ACK 2448d28.

Comment thread CMakeLists.txt
include/mp/type-void.h
include/mp/util.h)
include/mp/util.h
include/mp/version.h)

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.

Agreed. In the Bitcoin Core repo:

$ git grep "mp/version.h" -- ":(exclude)src/ipc/libmultiprocess/"
src/ipc/util.h:#include <mp/version.h>

Comment thread CMakeLists.txt
include/mp/type-struct.h
include/mp/type-threadmap.h
include/mp/type-tuple.h
include/mp/type-unordered-set.h

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.

This header doesn't seem to be used in Bitcoin Core outside of src/ipc/libmultiprocess/:

$ git grep "mp/type-unordered-set.h" -- ":(exclude)src/ipc/libmultiprocess/" | wc -l
0

However, it's better to treat it like the other mp/type-*.h headers. This line effectively amends #277.

@xyzconstant

Copy link
Copy Markdown
Contributor

ACK 2448d28

@ryanofsky
ryanofsky merged commit f2e8df8 into bitcoin-core:master Aug 26, 2026
13 checks passed
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.

4 participants