-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
boost-1.78 fix cmake auto configuration for windows #8526
boost-1.78 fix cmake auto configuration for windows #8526
Conversation
I detected other pull requests that are modifying boost/all recipe:
This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
This comment has been minimized.
This comment has been minimized.
Your |
This comment has been minimized.
This comment has been minimized.
I encountered the same problem, but I think swapping the strings isn't a real fix. It only works if your compiler is
@SpaceIm I don't think it's a good idea to require an up-to-date settings.yml file. The recipe is breaking existing projects running on a somewhat old version of Conan. Such breaking change without any warning is really annoying. I would suggest using a similar approach as conan-io/conan#9954, i.e. reading the compiler value with |
It's not going to happen, cf https://github.com/conan-io/conan-center-index/blob/master/docs/consuming_recipes.md |
The last revision of boost recipe already requires conan 1.33.0:
And msvc has been added to settings.yml in conan 1.33.0 https://github.com/conan-io/conan/releases/tag/1.33.0
|
the problem in the way conan upgrade the configurations, changes in seettings.yml especially when it was all the way "default" is a painful to push through entire organization especially when people using it time to time... |
Does it work with (also related to #6155) |
yes, it does work, in fact that was original solution. but then found this ("order") hack in other receipts |
get_safe does not help here. Compiler always exists |
it does help well, another way I may think of is to use local variable in condition compiler == 'vc' |
|
✔️ sold |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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 like this change because it introduces a weakness to typos. It's necessary to update settings.yml for other reasons anyway. If user really want to use an outdated settings.yml, they can use older revisions of recipes.
outdated settings.yml was not intentional, the very first time I actually noticed it even exists was @SpaceIm comment above. The main problem I view is in strategy conan uses for upgrading it. But I'm confident that the strategy was thoughtful and don't want to dealt with changing it... I'm just trying to simplify upgrade for my organization and other people who is not to investigate each issue with every update. Otherwise the package manager does not remove, but add complexity to their day by day work... |
This comment has been minimized.
This comment has been minimized.
Former Conan enterprise user, what worked best for us was using the https://docs.conan.io/en/latest/reference/commands/consumer/config.html install option with a repo with our settings (but we needed custom settings and had to semi-automatic upgrade) There's a super awesome feature
Hopefully this helps |
This comment has been minimized.
This comment has been minimized.
You'll need to retrigger CI, close the pr wait 10s and then re-open it 🔁 |
All green in build 7 (
|
* fix cmake auto configuration for windows * fix * fix
closes: #8550
Specify library name and version: boost-1.78
cmake auto configuration failing with boost-1.78:
conan-center hook activated.