-
Notifications
You must be signed in to change notification settings - Fork 948
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
[feature] cmake presets generator #10101
Comments
The issue is that Conan by default should support cmake 3.15: conan-io/tribe#4 While it could make sense to add later another generator for this functionality, at the moment we should focus on 1 canonical integration. This will be In any case, with the new functionalities it is now easier to create extensions. You can surely create a new block for
|
@stefaneicher we implemented our own CMake Presets generator internally and it works great! You have a very transparent, identical workflow on all platforms, for all developers.
|
Thanks @KerstinKeller and @memsharded for your answers! In the meantime in the new clion release I can run a script and therefore call the generated activate.sh script. |
Moving my comment from #10515 (comment) over here, since it seems like a better place. I'm not sure that supporing a minimum of 3.15 is necessarily a blocker; it really just means conan.tools.cmake.CMake can't use In fact, the IDE Integration Guide explicitly endorses this sort of thing, saying
and
And they give schemas/test cases for doing your own parsing. If conan's helper object did this (interfacing as they recommend an IDE should), that ought to be a stable integration and would make this compatible with older CMake (while also getting the benefits for newer IDEs). |
We are going to explore how the presets.json interface could be directly used by Conan in cmake 3.15, following suggestions from #10515 (comment) |
Related: #10770 (comment), needs to store another variable |
We are changing the CMakeToolchain to generate (also, besides the toolchainfile) a CMakePresets.json file in 1.47 in #10903 The presets file will be generated atm in the Feedback will be very welcome! |
Would it make sense to create a cmake presets generator?
https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html
We use the vitualenv generator and in vscode run the activate.sh to setup the environment. But in clion this does not work.
I would like to get a cmake idiomatic solution in which a cmake integration of any ide integrates seamless.
Cmake toolchaain is currently not a option since we have multiple packages in the repo and use workspaces during development that only work with the cmake generator.
The text was updated successfully, but these errors were encountered: