[CMake] Difference between PRIVATE and PUBLIC with target_link_libraries
Patrick Boettcher
patrick.boettcher at posteo.de
Wed May 11 01:13:55 EDT 2016
On Tue, 10 May 2016 11:39:49 +0200
Attila Krasznahorkay <attila.krasznahorkay at gmail.com> wrote:
> Hi Patrick,
>
> I *think* that these public/private rules behave a bit differently
> for static libraries than they do for shared ones.
>
> But I have to admit, that based on this code I also would've guessed
> that -I/tmp would not show up in the build of exe1...
>
> I did manage to use public and private dependencies as expected in my
> own configurations, so I'm not exactly sure what's going wrong in
> your case. Which version of CMake did you use for the test?
I'm using cmake 3.5.0.
Thank you for your feedback - I'll try to use shared-libraries, to see
whether it changes something or not
regards,
--
Patrick.
More information about the CMake
mailing list