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

Nicolás Alvarez nicolas.alvarez at gmail.com
Wed Sep 25 16:52:01 UTC 2013


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


More information about the Kde-frameworks-devel mailing list