Skip to content

add installable package - #45

Merged
ccotter merged 1 commit into
dvyukov:masterfrom
aozgaa:relacy-packaging
Mar 6, 2026
Merged

add installable package#45
ccotter merged 1 commit into
dvyukov:masterfrom
aozgaa:relacy-packaging

Conversation

@aozgaa

@aozgaa aozgaa commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

edits cmake scripts to make relacy installable so that find_package(relacy REQUIRED) works.

Test Plan

made a sample package (copied examples) and verify that relacy is found in a custom install prefix.

@dvyukov

dvyukov commented Mar 4, 2026

Copy link
Copy Markdown
Owner

@ccotter do you mind taking a look? I don't understand CMake much.

Comment thread CMakeLists.txt
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(relacy INTERFACE cxx_std_11)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

does this specify an exact version, or can the library user still specify a higher version?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is a minimum version, see requiring language standards. (not exactly intuitive syntax, I agree).

@ccotter ccotter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I typically consume libraries via pkg-config metadata, so I have less experience with the find_package(relacy...) approach, but otherwise this looks good to me. Thanks!

@ccotter

ccotter commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

@dvyukov - confirming you're ok with me merging? If you'd like me to review and merge PRs in the future, feel free to assign me as reviewer and I'll take that as a signal for me to review/merge as I see fit, unless you comment otherwise.

@dvyukov

dvyukov commented Mar 6, 2026

Copy link
Copy Markdown
Owner

@dvyukov - confirming you're ok with me merging? If you'd like me to review and merge PRs in the future, feel free to assign me as reviewer and I'll take that as a signal for me to review/merge as I see fit, unless you comment otherwise.

Yes, I am ok with merging this. Please try to merge, let's see if it works.
And, yes, I am ok with you merging other changes in the future if they look non-controversial to you.
Thanks

@ccotter
ccotter merged commit 7a715e2 into dvyukov:master Mar 6, 2026
4 checks passed
@aozgaa

aozgaa commented Mar 8, 2026

Copy link
Copy Markdown
Contributor Author

Awesome, thank you all for taking time to review/merge!

Happy to help with any follow-ups (though hopefully no churn!)

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.

3 participants