-
Notifications
You must be signed in to change notification settings - Fork 948
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
new PkgConfigDeps generator creates wrong gtest suite pc files #9631
Comments
Hi @Makogan Do you mean the line shot be something like?
So it includes the other .pc file as transitive dependency automatically? Yes, this seems a bug, lets try to fix it for next release. Thanks for reporting! |
Btw, it could be something missing in the recipe itself, needs to be checked. I see something like: self.cpp_info.components["libgtest"].names["cmake_find_package"] = "gtest"
self.cpp_info.components["libgtest"].names["cmake_find_package_multi"] = "gtest"
self.cpp_info.components["libgtest"].libs = ["gtest{}".format(self._postfix)] Which is the legacy way of setting names. It is possible that the new |
@memsharded Yes, that's what I mean, all the lib names are missing the prefix, I am not sure about the recipes, I have yet to write one myself so I am not in a good position to give feedback about it. |
#9635 merged, will be released in next 1.41 (can be tested now from "develop" branch). Thanks! |
Happy to have helped! |
Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Use PkgConfigDeps to download gtest as a dependency and if I set it to install teh pc files in a directory other than the build directory. I get the pc files:
Inside gtest.pc I see:
The libraries are wrong, it should be, for example
gtest-libgtest
, and manually changing the files to have that prefix solves the issue.This does not happen if I install the files in the build directory using the old pkg_config generator, in that case I do get a plain libgtest.pc file.
The text was updated successfully, but these errors were encountered: