Skip to content

Use PROJECT_VERSION not CMAKE_PROJECT_VERSION #682

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Aug 15, 2024

Description

When building as a subproject the CMAKE_PROJECT_VERSION is the root project version not the current project version. As such, in a subproject which makes use of UMF, such as UR, the .so or .dll library version would be set to the UR project version, not the UMF version.

This patch fixes this erroneous versioning by using PROJECT_VERSION (and derivatives) in place of CMAKE_PROJECT_VERSION.

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@kbenzie kbenzie requested a review from a team as a code owner August 15, 2024 14:32
When building as a subproject the `CMAKE_PROJECT_VERSION` is the root
project version not the current project version. As such, in a
subproject which makes use of UMF, such as UR, the `.so` or `.dll`
library version would be set to the UR project version, not the UMF
version.

This patch fixes this erroneous versioning by using `PROJECT_VERSION`
(and derivatives) in place of `CMAKE_PROJECT_VERSION`.
@kbenzie kbenzie force-pushed the benie/use-project-version branch from 76ff417 to 5333734 Compare August 15, 2024 14:39
@igchor igchor added the v0.9.x label Aug 15, 2024
@igchor igchor merged commit d969819 into oneapi-src:main Aug 15, 2024
61 of 65 checks passed
igchor added a commit to igchor/unified-runtime that referenced this pull request Aug 15, 2024
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