Skip to content

cmake: Use upstream helpers for the Config.cmake file #124

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 3 commits into
base: master
Choose a base branch
from

Conversation

LecrisUT
Copy link
Contributor

@LecrisUT LecrisUT commented Apr 2, 2025

First PR in the refactoring series. Use modern design for creating the Config.cmake file.

Depends-on: #123, #125
Fixes #109
(Mostly, the targets created and exported are still not visible, but I want to address that in another PR that focuses on readability, which would be the last in the series)

@LecrisUT LecrisUT force-pushed the cmake/refactor/cmake-config branch 5 times, most recently from aaa2c4f to 5618e4b Compare April 3, 2025 12:51
@VictorEijkhout
Copy link

@LecrisUT I think my open ticket is waiting for this PR.

@LecrisUT
Copy link
Contributor Author

Yes, but we should get #125 to be easier to review, at the very least for me to re-review myself 😅

@LecrisUT LecrisUT force-pushed the cmake/refactor/cmake-config branch from 5618e4b to 4446c06 Compare July 31, 2025 16:29
LecrisUT added 3 commits July 31, 2025 18:48
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT force-pushed the cmake/refactor/cmake-config branch from 4446c06 to 3af8f08 Compare July 31, 2025 16:48
Copy link
Contributor Author

@LecrisUT LecrisUT left a comment

Choose a reason for hiding this comment

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

@langou All good on my side for this one also

@@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.17...4.0)
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 don't remember why I set this one. But if anyone sees an issue with it just ping me. It might have been related to add_library(INTERFACE IMPORTED) or something else in the parts below.

Choose a reason for hiding this comment

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

Does that mean 4.0 is the max? There is already a 4.1 release candiate.

Copy link
Contributor Author

@LecrisUT LecrisUT Jul 31, 2025

Choose a reason for hiding this comment

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

No, it means use policies up to version 4.0 as NEW. Read it as we have tested this part with "all cmakes" between <min>...<max>. The comment is about why I chose 3.17 as the minimum. For Config.cmake files, the minimum should be as low as possible.

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.

what targets are published by cmake?
2 participants