conan-io / conan

Conan - The open-source C and C++ package manager
https://conan.io
MIT License
8.22k stars 979 forks source link

[question] How to select the binaries for a given package version? #10764

Open Makogan opened 2 years ago

Makogan commented 2 years ago

If I want binaries built with a specific version of GCC, for example the spirv-cross binaries generated with gcc 12 for linux: https://conan.io/center/spirv-cross?tab=configuration&os=

How do I specify that that specific package, and only that package, should use bianries generated with that compiler?

memsharded commented 2 years ago

Hi @Makogan

Not sure what you mean. You define the -s compiler=gcc -s compiler.version=12 in your command line or in your profile and you get it, don't you? Or you mean all other packages with other compiler version and that one with 12? In that case -s spirv:compiler=gcc -s spirv:compiler.version=12.

Makogan commented 2 years ago

That affects all packages, I want to affect only the one specific package. i.e. I want a configuration for only one pakage that differs from the rest.

memsharded commented 2 years ago

Not sure what you mean. The -s pkgpattern:setting=value only affect packages that match the pkgpattern. The example above should only affect the specific spirv package, not all.