[CMake] How to specify library dir for imported interface?

Francis Giraldeau francis.giraldeau at gmail.com
Wed Jul 4 10:02:25 EDT 2018


> However, it seems no property exists to actually specify the library dir
> of imported target, nor the linker flags to pass when using the
> imported target.
>
> What would be the best way to specify the library dir for an imported
> library?

My workarround at the moment is to add a global link_directories(). It is
not clean, as it lacks the transitivity for library users, but at least it
works.

Cheers,

Francis
-- 
Francis Giraldeau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180704/ee3b93e4/attachment.html>


More information about the CMake mailing list