-
Notifications
You must be signed in to change notification settings - Fork 57
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
Initial support for cmake.preset
#994
base: main
Are you sure you want to change the base?
Conversation
1c4ae1f
to
9f9b879
Compare
@@ -273,8 +273,12 @@ def __init__( | |||
new_min_cmake = "3.15" | |||
self.settings.cmake.version = SpecifierSet(f">={new_min_cmake}") | |||
|
|||
default_cmake_minimum = "3.15" | |||
if self.settings.cmake.preset: | |||
default_cmake_minimum = "3.19" |
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 think I am handling this part correctly. Generally it should not be tied to the auto-cmake
version, but not sure where to feed it to override potential values set by the user. Or we just fail it at builder.cmake
?
4cfc481
to
cf19fc1
Compare
Signed-off-by: Cristian Le <[email protected]>
"OVERWRITTEN_VAR": "original" | ||
}, | ||
"binaryDir": "/dev/null", | ||
"generator": "Ninja" |
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.
Windows disapproves, but empty generator is only available in version 3
. Not sure if I can bump it and satisfy the other builders. What generator value is available on windows?
Back in #790 I commented that we could support
configurePresets
if we overwrite thebinarydir
. It seems to work fine, but I realized we still have an issue to discuss how to deal with the generator. My thinking is that depending onmake-fallback
value and ifpreset
is present we deffer to the value ofpreset
and let it handle the rest. Although not sure how to detect/handle multi-config then, but wouldn't it build all configs if it wasn't specified explicitly? The documentation ofmake-fallback
is also confusing me a bit.PS: it took me way too long to figure out
nox -t gen
was a thing 🤦