Conan: Virtualrunenv generator how to hide lib from one package

Created on 4 Apr 2019  路  4Comments  路  Source: conan-io/conan

Hi simple question, i have a project which requires libA, libB and libC, libC is only required because it has binary tools and this binary tools link with libC/package/xxxx/lib's using RPATH=$ORIGIN/../lib that they are exclusive to libC tools, i don't want them in any other place.

This all works great but when i use the virtualrunenv on my project i only want to receive the PATH to the bin from libC and not the lib folder from libC...

The question is there any way of preventing that virtualrunenv append to LD_LIBRARY_PATH the lib path of libC? if yes how?

Thanks

question

All 4 comments

this is a dummy question right? don't create the lib folder or move the lib folder to another location like for example inside bin folder.... right?

You can adjust the cppinfo to remove any library directory (by default there is the "lib" one) in the package of library C:
Something like:

def package_info(self):
    self.cppinfo.libdirs = []

https://docs.conan.io/en/latest/reference/conanfile/attributes.html#cpp-info

hi @lasote thanks for your reply... but you mean self.cpp_info.libdirs right and not cppinfo?

right, that was a typo! thanks

Was this page helpful?
0 / 5 - 0 ratings