CMake, KF5_INCLUDE_DIRS empty?
David Faure
faure at kde.org
Sun Oct 20 09:42:47 UTC 2013
On Sunday 13 October 2013 17:18:28 Mark wrote:
> Hi,
>
> I used to rely on KF5_INCLUDE_DIRS but since a few days that variable seems
> to be empty. Did i do something wrong?
>
> My CMake file for the relevant parts:
>
> find_package(ECM REQUIRED NO_MODULE)
> set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
> find_package(KF5 MODULE REQUIRED COMPONENTS CMake Compiler InstallDirs
> KBookmarks XmlGui Solid KIO)
> include_directories(${KF5_INCLUDE_DIRS})
>
> KF5_INCLUDE_DIRS used to contain a bunch of paths a few days ago.
I don't know much about this variable, but it shouldn't be needed anyway.
Just linking to the appropriate targets (e.g. KF5::KBookmarks) should bring in
the corresponding include dirs.
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
More information about the Kde-frameworks-devel
mailing list