-
Notifications
You must be signed in to change notification settings - Fork 62
Support for CMake Presets? #515
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
Comments
Not yet, but maybe it's worth discussing this:
What are your thoughts and priorities on this? How do you envision the preset support to be like? |
My use case would be the following: |
Wouldn't it be possible to use the CMake file API to extract the information about the generated build system, including binary directory etc.? https://cmake.org/cmake/help/latest/manual/cmake-file-api.7.html#object-kinds |
Unfortunately not, because the We did brainstorm it a bit more in #790. Basically if we limit the support to Footnotes |
@LecrisUT if the issue is getting the build directory after running configuration, why not just use the fact that when running configuration via commandline, CMake prints a message about where the build directory is? ("-- Build files have been written to:") https://github.com/Kitware/CMake/blob/master/Source/cmakemain.cxx#L190 |
Isn't that message written at the end of it. How to deal if the build threw a |
We don't intercept or parse the output. That is very fragile and users can output anything they want. Parsing the presets would be easier. |
@henryiii It's not a user-defined output. It's a CMake output that CMake prints at the end of running configuration via commandline. I'm not sure that you understood the context of my previous comment. @LecrisUT If configuration fails because an unsupported generator was requested, then why should scikit-build try to do something to "deal with it"? Just fail the operation. |
The issue is a message printed by CMake is indistinguishable by a message printed by the user.
Because skbuild supports adding |
It's printed at the end of configuration. It's generally the last thing that gets printed.
Why not compromise? Just limit support to configure presets that don't depend on inheritance or default generator discovery procedure. |
Is there any support for
CMakePresets.json
?The text was updated successfully, but these errors were encountered: