-
Notifications
You must be signed in to change notification settings - Fork 74
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
base: master
Are you sure you want to change the base?
cmake: Use upstream helpers for the Config.cmake file #124
Conversation
aaa2c4f
to
5618e4b
Compare
@LecrisUT I think my open ticket is waiting for this PR. |
Yes, but we should get #125 to be easier to review, at the very least for me to re-review myself 😅 |
5618e4b
to
4446c06
Compare
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
4446c06
to
3af8f08
Compare
There was a problem hiding this 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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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)