-
Notifications
You must be signed in to change notification settings - Fork 953
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
[question] preset name != profile name #16557
Comments
Hi @h-2 Thanks for your question. The profile file name is never used in the preset itself, if your profile file is named "Release", it is a coincidence. The presets names are taken:
So if your |
Thank you for the quick reply and the explanations.
Well, it changes the cxx_flags, but I wouldnt want to add those to the name... Is there a way I can just do |
I have tried adding:
But it doesn't work:
I am also not really sure how this is related to the layout of the build folder at all. It's just about the naming of the preset 🤔 |
It is not possible at this moment. Note that profile name is not even a single file, as there can be (and it is common) to use multiple profiles like The best approach for these cases is usually to abstract the concept of sanitizers, with custom settings ore options like in https://docs.conan.io/2/reference/binary_model/extending.html#extending-the-binary-model. |
What is your question?
For my conan profile "Release" the cmake preset ends up being "conan-release", and for "Debug" it ends up being "conan-debug". This is fine! But for "DebugASAN", it also ends up being "conan-debug" and not "conan-debugasan".
Is there some easy way I can control the preset name from the profile? Or always have it be the same?
Sorry, if this has been asked before; most things I could find where outdated or referred to Conan1.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: