[CMake] Difference between PRIVATE and PUBLIC with target_link_libraries
iosif neitzke
iosif.neitzke+cmake at gmail.com
Thu May 12 10:20:10 EDT 2016
I'm sorry, I'm not sure I understand. In your example, there is
target_link_libraries(lib3 PUBLIC lib1). It looks like lib2 has
target_link_libraries(lib2 PRIVATE lib1).
http://public.kitware.com/pipermail/cmake/2016-May/063382.html
On Thu, May 12, 2016 at 9:10 AM, Patrick Boettcher
<patrick.boettcher at posteo.de> wrote:
> On Thu, 12 May 2016 09:04:10 -0500
> iosif neitzke <iosif.neitzke+cmake at gmail.com> wrote:
>
>> target_include_directories(lib1 INTERFACE /tmp) means /tmp is
>> propagated with lib1, but not used to build lib1.
>
> I know. Could you elaborate how this is related with lib3 PRIVATEly linking to
> lib1?
>
> regards,
> --
> Patrick.
More information about the CMake
mailing list