-
Notifications
You must be signed in to change notification settings - Fork 979
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
Specifying link order of a conan package #1983
Comments
I think the libraries should be in the order they are declared in the def package_info(self):
self.cpp_info.libs = ["a", "b"] Can you please check your |
Looks like I was using |
Nop, under the hood |
There is an issue about this to add a warning in the docs conan-io/docs#443 due to the same issue here #2201 |
I'm replying here as a followup for this issue. This issue is a bug in the package itself. However, due to the arbitrary order of I agree that sorting the libraries alphabetically won't magically solve the dependency graph, and that it is up to the package maintainer to maintain the correct order. However, making |
Hi @r-darwish There is no bug in the behavior of Would you like to contribute with that enhancement? 😄 |
I thinks this could be closed due to lack of activity. Please open a new issue with info updated for |
I have a conan package that includes a set of prebuilt binaries. ie. liba.a and libb.a. When calling
target_link_libraries(nameOfSharedLibrary CONAN_PKG::PackageName)
the libraries are linked to in the wrong order (libb.a liba.a). To work around this I am linking to these I am calling
target_link_libraries(nameOfSharedLibrary ${CONAN_LIB_DIRS_PACKAGENAME}/liba.a ${CONAN_LIB_DIRS_PACKAGENAME}/libb.b)
.Is there a way to specify what this link order should be for a package? Either when creating the package or from the consuming project?
The text was updated successfully, but these errors were encountered: