Fwd: Reminder: use KF5::foo instead of ${foo_LIBRARIES} in CMakeLists

Aleix Pol aleixpol at kde.org
Wed Sep 25 16:55:54 UTC 2013


On Wed, Sep 25, 2013 at 6:52 PM, Nicolás Alvarez
<nicolas.alvarez at gmail.com>wrote:

> 2013/9/25 Aurélien Gâteau <agateau at kde.org>:
> > The alternative syntax: ${KConfigCore_LIBRARIES} would work in both
> cases, but
> > it is more error prone: any typo in the variable name causes the
> variable to
> > be expanded to an empty string, making it more difficult to debug,
> whereas
> > using target names provide more explicit error messages.
>
> Have you tried using cmake --warn-uninitialized?
>
> --
> Nicolás
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>

It's not really an alternative, it becomes far too verbose.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130925/bcf65deb/attachment.html>


More information about the Kde-frameworks-devel mailing list