-
Notifications
You must be signed in to change notification settings - Fork 990
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] build_id() and packaging prebuilt libraries #15437
Comments
Hi @daltonv Thanks for your report. I assume this is 2.0 |
Yep this 2.0. 2.0.16 to be exact. |
While I am investigating it in #15439, a quick question: is it possible that you don't want to define the |
The SDK provides 3 static libs that are really all just variants of the same built source code for 3 different compilers. I really do need each lib to be its own package binary, so the consumer of the package just needs to setup their profile right and they get the right library for the compiler their project is using. |
Oh, I see. So the variability is indeed over the compiler, got it. |
Sounds good. Thanks for looking into it! |
#15439 has been merged, so this will be available next Conan 2.1 release |
Awesome thanks for the quick fix! |
My team packages an SDK for a mcu vendor for conan distribution. The SDK comes as a zip file with the sdk sources and prebuilt libraries for 3 different compilers.
I setup my conan recipe so that my
build()
method really just downloads the SDK of the right version from a publicly accessible link on the vendor's site. Thepackage()
method just copies the right libs based on the settings from the profile being used.This is all working for me, but I would like to avoid pointlessly redownloading the sdk for each package binary I produce as all variants depend on the same sdk.
I found the
build_id()
method can do this, but it seems to only work for multiple build types. If I try to setself.info_build.settings.compiler = "Any"
in the method I get and error about Any not being a valid selection.ConanException: Invalid setting 'Any' is not a valid 'settings.compiler' value.
.Is there some way to set that every compiler uses the same "build"?
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: