[CMake] target_link_libraries - private public interface rules

Luis Caro Campos julius.caro at gmail.com
Tue Aug 22 13:17:31 EDT 2017


I think the documentation also fails to mention that link dependencies
propagate even when "PRIVATE" is used, if the target is a static library.





On 22 Aug 2017 4:40 pm, "Brad King" <brad.king at kitware.com> wrote:

> On 08/22/2017 11:36 AM, Robert Maynard wrote:
> > The `Transitive Usage Requirements` section of the cmake-buildsystem
> > documentation quickly covers this idea but it could be elaborated on.
> > This might be a good place for a concrete example.
>
> Yes.  Showing the transitive header case as an example would be good
> to show when a dependency should be PUBLIC instead of PRIVATE.
>
> -Brad
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20170822/eb70b296/attachment.html>


More information about the CMake mailing list