You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed generators/qmake.py, unlike most of the other generators, does not contain the text system_libs anywhere.
My actual problem is not with icu but with a proprietary package that I'm maintaining myself, so as a workaround I tried adding cpp_info.exeflags.append('-lpthread'). That gets added to the link command properly, but in the wrong order (it should be after the dependent lib), so it still doesn't work.
A workaround that does work (for me) is to put self.cpp_info.libs += self.cpp_info.system_libs at the end of the package_info function.
I think the solution for QMake would be to just add system libs to the end of the *_LIBS variables.
The text was updated successfully, but these errors were encountered:
Yes, you are right, this seems to be missing. As the changes should be relatively straightforward, would you like to contribute yourself to the fix in QmakeGenerator class? If not, possible, not a problem, we will manage it (but it might need to wait until next Conan 1.30 release). Thanks for reporting!
It seems the QMake generator, like the SCons generator, was overlooked in #5582 which added
cpp_info.system_libs
.Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
conanfile.txt
:On Linux, the icu recipe adds
pthread
tocpp_info.system_libs
:https://github.com/conan-io/conan-center-index/blob/d6c56bef267cab013b13fbb35b9426735b78bd5e/recipes/icu/all/conanfile.py#L235
However, this is not reflected in the generated conanbuildinfo.pri:
Indeed
generators/qmake.py
, unlike most of the other generators, does not contain the textsystem_libs
anywhere.My actual problem is not with icu but with a proprietary package that I'm maintaining myself, so as a workaround I tried adding
cpp_info.exeflags.append('-lpthread')
. That gets added to the link command properly, but in the wrong order (it should be after the dependent lib), so it still doesn't work.A workaround that does work (for me) is to put
self.cpp_info.libs += self.cpp_info.system_libs
at the end of thepackage_info
function.I think the solution for QMake would be to just add system libs to the end of the
*_LIBS
variables.The text was updated successfully, but these errors were encountered: