-
Notifications
You must be signed in to change notification settings - Fork 360
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
Option to use different profile packages in one conan package #3379
Comments
Hi @dpatchi Thanks for your question.
This approach is robust, simple, very explicit, with total control on your side
Please let me know if this helps |
Hello James, Thank you for your quick response. In fact, i have couple of follow up queries. Please help. Regarding your option 1 : We are using common profiles across around 100+ projects to maintain commonality. We feel updating common profile for few packages might not be good idea - hence if we have any option at consumer side will be really good - Do we have any such option ? Regarding your option 2: Based on my understanding this is present in 2.0 only. Currently we are using 1.0 and working on logistics for 2.0(jfrog artifactory). Do we have any such in 1.0 ? Thank you |
I am not sure what you mean. The profiles are consumer side. Profiles have many features to manage reuse and flexibility like:
No, the compatibility plugin is only in Conan 2.0. You might try to use the |
Hello James, My point here is instead of updating the profiles, can we make some changes/settings in consumer side to look for different settings ? Lets say I am building product A -> dependens on component B and C. At the same, we have another product Z -> depends on components B and C. Here in this case, we use both 9.5 packages. For all products we use common profiles -> hence I prefer not to change anything in common profiles. I hope i am clear ! Could you please suggest your opinion ? |
You can still have your common profiles like this: This is the common profile:
You can use it for product Z, as Then you can have a specific complement to define the logic for product A: This is the productA profile:
Then you can use it for product A as
Then you can use it for product A as This way:
If you want to, you can easily locate the Please let me know if this clarifies it a bit more. Thanks! |
Hello All,
We have a scenario to use different packages generated by different profiles in requriments/build_requriments of conan reciepe.
This is because if the libs are compiled with lower version of gcc will be compatible with higer version of gcc too.
Ex:
Product A has dependency on B and C modules - ultimate goal to build product A with profile settings compiler.version=9.5 and os=linux64.
We have package for B module with same profile settings. but we dont have package for module C with same settings. Instead C module package has profiles settings compiler.version = 9.2 and we know it Package C with compiler version 9.2 will work on 9.5.
For the above scenario, how can we consume C module package in product A Conan recipe ?
I do understand that, although we are using some profile while creating package_Id i can remove one particular settings, if i do that the same package doesn't work on lower compiler.
Could you please help suggesting good approach to handle this scenario ?
Thank you
The text was updated successfully, but these errors were encountered: