-
Notifications
You must be signed in to change notification settings - Fork 989
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
tools.collect_libs() doesn't respect self.cpp_info.libdirs #3488
Comments
I'm starting to realize that this is an issue in several places.
Otherwise every single recipe needs this special treatment. |
Yet another thought: Why is tools.collect_libs not simply using self.cpp_info.libdirs? |
I think this is a duplicate of #3369. Also assigned for take a look for the next release. |
Seems mostly a duplicate, yes. But maybe it should be also an issue that tools.collect_libs() doesn't seem to respect self.cpp_info.libdirs? |
as mentioned on the other issue, this isn't a duplicate. At least, it solves the same problem but I believe there are subtle differences in the consequences of these two different ways of solving it. |
Sure, this is a different issue, rename the title then ;) |
I don't believe that the changes are totally covering the issue.
|
Not really, we have fixed the folder outputs of the build helpers to stick them to the Conan default layout. After Conan 1.8 output libdir will be "lib" folder for the |
This only helps when the AutoToolsBuildEnvironment are used. I run into the problem while building with CMake. Actually, let me double check that again, just to be sure, but in general I guess this can happen with all build tools. |
actually this is almost certainly a property of a "badly written" cmake file (in quotes because such a definition is very hard to come up with). If your cmake buildsystem respects the value of the CMAKE_INSTALL_LIBDIR value, then it will install libraries into the "lib" folder, because conan sets that value when using the cmake build helper. If, however, for example the cmake file uses "include(GNUInstallDirs)" (regarded by many as a good idea, and I'm not totally arguing against that), then on some distros this will cause installation into lib64 anyway. Alternatively, quite a few cmake files (most culprits I've come across are very "windows centric" ones), simply manually override installation directories directly, and these will have to either be patched, or the files (very carefully, respecting issues like rpath, any exported cmake config file locations paths, etc etc etc) moved after installation. |
Fedora is putting 64bit libraries in
lib64/
not inlib/
.The collect_libs tool should look out for an existing
lib64
directory to collect all libs.The text was updated successfully, but these errors were encountered: