Re: [CMake] transitive linkage of OBJECT library targets

2019-05-22 Thread Richard Szabo
with the transitive linkage. :(. Cheers Richard On Wed, 22 May 2019 at 20:33, Richard Szabo wrote: > > With Public it is still the same problem :( > > cmake_minimum_required(VERSION 3.14) > project(test_object_lib_nesting) > > set(CMAKE_CXX_STANDARD 14) > > add_libr

Re: [CMake] transitive linkage of OBJECT library targets

2019-05-22 Thread Richard Szabo
9 at 14:25, Robert Maynard wrote: > > This is a known limitation of the current design. Only directly linked > object library objects are propagated. > > For more details on why see: > https://gitlab.kitware.com/cmake/cmake/issues/18090 > > On Wed, May 22, 2019 at 1:48 A

[CMake] transitive linkage of OBJECT library targets

2019-05-21 Thread Richard Szabo
Hi cmakers I'm trying to get the following example working: ``` cmake_minimum_required(VERSION 3.14) project(test_object_lib_nesting) set(CMAKE_CXX_STANDARD 14) add_library(first_object_lib OBJECT first.cpp) add_library(second_object_lib OBJECT second.cpp) target_link_libraries(second_object_l