install(TARGETS): Regression using components with NuGet
Just for context, we use cmake/cpack nuget generator to produce our build artifacts (nuget packages). This has been working fine until we recently updated cmake (previously we were on 3.19.8 and the regression was observed in 3.20.5).
Previously the following component specific call to install worked as expected.
This produced nuget packages with the following directory structure (will use runtime component as example but the same thing is observed regardless of which component);
Previous
New
Notice the bin dir is now nested in another dir that has the same name as the component it is installing, this is the regression.
I'm not sure who to assign this to so picked a name i am somewhat familiar with, sorry @brad.king, please re-assign as you see fit.