[cmake-developers] Recommended use of imported targets...
Brad King
brad.king at kitware.com
Thu Feb 28 13:27:21 EST 2013
On 02/28/2013 01:15 PM, Alexander Neundorf wrote:
> I am talking from the POV not of the developer using Foo itself, but from a
> user trying to just build the project.
> Using a variable, it is obvious when looking at the cmake code:
> tll(hello ... ${Foo_LIBRARIES} )
>
> using a literal, it is not:
> tll(hello ... foo )
Imported targets with namespaces like Qt5::QtCore are pretty obvious.
> So since yesterday I think I'll stay with recommending using and documenting
> PackageName_LIBRARIES variables, and keep the targets internal.
Fine with me.
-Brad
More information about the cmake-developers
mailing list