Skip to content

feat: add export support #523

Merged
sangelovic merged 2 commits intoKistler-Group:masterfrom
Krzmbrzl:patch-2
Jan 6, 2026
Merged

feat: add export support #523
sangelovic merged 2 commits intoKistler-Group:masterfrom
Krzmbrzl:patch-2

Conversation

@Krzmbrzl
Copy link
Contributor

@Krzmbrzl Krzmbrzl commented Jan 3, 2026

This makes sdbus-c++ consumable from the build tree without the need for an explicit installation. This can be very handy for e.g. testing purposes. Crucially, downstream projects will depend on upstream to properly export everything. Otherwise, they can't be built as static libraries, even if sdbus-c++ is only a private dependency.

See also https://runebook.dev/en/docs/cmake/command/export

This makes sdbus-c++ consumable from the build tree without the need for
an explicit installation. This can be very handy for e.g. testing
purposes. Crucially, downstream projects will depend on upstream to
properly export everything. Otherwise, they can't be built as static
libraries, even if sdbus-c++ is only a private dependency.

See also https://runebook.dev/en/docs/cmake/command/export
@Krzmbrzl Krzmbrzl changed the title Add export support feat: add export support Jan 3, 2026
Krzmbrzl added a commit to mumble-voip/os-events that referenced this pull request Jan 3, 2026
When building as a static library, the sdbus-c++ dependency can cause
issues with exporting as not all versions of it support it. Hence, it
can be disabled as needed.

See also Kistler-Group/sdbus-cpp#523
Copy link
Collaborator

@sangelovic sangelovic left a comment

Choose a reason for hiding this comment

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

Your proposal makes much sense. Thank you for the PR!

EXPORT_SET is empty when SDBUSCPP_INSTALL is OFF,
which leads to targets file with no targets.
@sangelovic sangelovic merged commit 44aa4f0 into Kistler-Group:master Jan 6, 2026
9 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.

2 participants