conan-io / conan-io/docs

Option to use different profile packages in one conan package

Open
#3,379 5 comments 0 reactions 1 assignee Claimed by @memsharded View on GitHub
type: question
Dominant language
C++
Stars
125
Forks
382
Avg merge
22h 39m
Merged PRs (30d)
21

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.