Transient dependencies not resolved with cpp plugin

I am just getting started with the cpp plugin on a Window build, and have set up a three projects with dependencies as follows:

Exe dependsOn lib2 lib2 dependsOn lib1

Compilation and linking of the two shared libraries and the exe is working fine, but although the exe depends indirectly on lib1 (via its dependency on lib2), I am having to explicitly declare this dependency in its build script, something I was not expecting to have to do. If I do not add the dependency on lib1 in the build script for the exe, then the installMainExecutable task does not copy lib1 into the output folder.

Is this a known issue? Or have I set something up incorrectly?

Tom

This is a known issue for the ‘install’ task. It’s on the list of things planned: https://github.com/gradle/gradle/blob/master/design-docs/continuous-delivery-for-c-plus-plus.md#story-allow-library-binaries-to-be-used-as-input-to-other-libraries

Thank you for the update.