Re: [cmake-developers] Question about ALIAS targets

2017-06-06 Thread David Cole via cmake-developers
>> After my find_package(OtherProj) call, which is a super build which >> defines lots of imported targets, I want the target to be named gtest >> to match its library name, but OtherProj has named it googletest. > > Why isn't there a standard name? Should upstream provide the imported > target? Ha

Re: [cmake-developers] Question about ALIAS targets

2017-06-06 Thread Brad King
On 06/05/2017 05:45 PM, Stephen Kelly wrote: > Eg - making it easy to alias imported targets means you can easily get > imported target names which vary per project (Qt5::Core, Qt5::QtCore, > TheQt5CoreLibrary etc) which doesn't seem useful. If we were to allow aliases of imported targets we'd a