Conversation
1c4ae1f to
9f9b879
Compare
|
|
||
| default_cmake_minimum = "3.15" | ||
| if self.settings.cmake.preset: | ||
| default_cmake_minimum = "3.19" |
There was a problem hiding this comment.
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?
cf19fc1 to
d07f649
Compare
| "OVERWRITTEN_VAR": "original" | ||
| }, | ||
| "binaryDir": "/dev/null", | ||
| "generator": "Ninja" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
scikit-build-core installs ninja via pip anyway, doesn't it? It should be ok to set Ninja on all platforms unconditionally.
There was a problem hiding this comment.
Windows is the black sheep here, and there is some logic on scikit-build-core around it. Don't remember the details though. There is also the logic around make-fallback option which confused me a bunch when I first attempted this
|
This would be really useful as I could replace my |
I need to rebase this and run the CI again. Iirc the issue was something to do with windows even when we overwrote the generator. I will not have a pc to work for about 1 week, but could you try a simple rebase and opening a PR in your fork to check the failure again? |
Signed-off-by: Cristian Le <git@lecris.dev>
|
Got to rebasing this, and here is the main issue that we encounter in this PR I believe that we are trying to pass the |
Back in #790 I commented that we could support
configurePresetsif 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-fallbackvalue and ifpresetis present we deffer to the value ofpresetand 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-fallbackis also confusing me a bit.PS: it took me way too long to figure out
nox -t genwas a thing 🤦