Skip to content

build: install cmake config #871

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ilya-fedin
Copy link
Contributor

This makes it easier to consume dispatch via package managers such as vcpkg or Linux system ones

This makes it easier to consume dispatch via package managers such as vcpkg or Linux system ones
@ilya-fedin ilya-fedin force-pushed the install-cmake-config branch from 064c549 to 39dc989 Compare May 11, 2025 00:27

get_property(DISPATCH_EXPORTS GLOBAL PROPERTY DISPATCH_EXPORTS)
export(TARGETS ${DISPATCH_EXPORTS} FILE ${DISPATCH_EXPORTS_FILE})

if(NOT ENABLE_SWIFT)
Copy link
Member

Choose a reason for hiding this comment

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

Why the NOT ENABLE_SWIFT condition for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've adapted only the native library part. I don't have swift, I use dispatch as a native library in a C++ project and a cmake config for it would make consumption way easier.

@compnerd compnerd requested a review from etcwilde May 16, 2025 16:22
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