Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Luis Caro Campos
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" wrote: > On 08/22/2017 11:36 AM, Robert Maynard wrote: > > The `Transitive Usage Requirements` section of the c

Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Brad King
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 w

Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Robert Maynard
e@cmake.org > Subject: Re: [CMake] target_link_libraries - private public interface rules > > You could look at extending the official CMake documentation, specifically > the build system documentation ( > https://cmake.org/cmake/help/v3.9/manual/cmake-buildsystem.7.html ). > > The do

Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Miller Henry
aries - private public interface rules You could look at extending the official CMake documentation, specifically the build system documentation ( https://cmake.org/cmake/help/v3.9/manual/cmake-buildsystem.7.html ). The documentation is all in restructure text and we accept documentation changes th

Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Haocheng Liu
On Tue, Aug 22, 2017 at 10:45 AM, Robert Maynard wrote: > You could look at extending the official CMake documentation, > specifically the build system documentation ( > https://cmake.org/cmake/help/v3.9/manual/cmake-buildsystem.7.html ). > > The documentation is all in restructure text and we ac

Re: [CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Robert Maynard
You could look at extending the official CMake documentation, specifically the build system documentation ( https://cmake.org/cmake/help/v3.9/manual/cmake-buildsystem.7.html ). The documentation is all in restructure text and we accept documentation changes through our gitlab instance. cmake gitl

[CMake] target_link_libraries - private public interface rules

2017-08-22 Thread Miller Henry
I've been playing with the private/public/interface keyword to target_link_libraries. It seems to me that WHAT they do is well documented, but nobody has ever actually documented what they correct rules of WHEN/WHY you should use any of them. After a lot of misstarts I think I've started to un