Re: [CMake] Linking object libraries into a Windows DLL in 3.12rc1

2018-06-26 Thread Jason Heeris
On Tue, Jun 26, 2018 at 7:36 PM, Deniz Bahadir wrote: Yes, you have overlooked an important detail. Only usage-requirements are transitive, the object-files are only propagated to directly dependent targets (not to indirectly dependent ones) *and only if they have a link/archive step* Ah

Re: [CMake] Linking object libraries into a Windows DLL in 3.12rc1

2018-06-26 Thread Deniz Bahadir
Hi Jason, Am 26.06.2018 um 07:45 schrieb Jason Heeris: ... https://gitlab.com/snippets/1728169 Have I misunderstood how object library usage requirements and dependencies propagate? I would appreciate any pointers on this. Yes, you have overlooked an important detail. Only usage-requireme

[CMake] Linking object libraries into a Windows DLL in 3.12rc1

2018-06-25 Thread Jason Heeris
I was very excited to see that CMake 3.12rc1 now has support for linking object libraries, making usage requirements propagate to top level targets that use these libraries. However, I'm having trouble putting the concept into practice to build a DLL on Windows 10 using Visual Studio 2017's compil