Install location of myframework_version.h headers

David Faure faure at kde.org
Thu May 14 19:37:32 UTC 2015


On Wednesday 13 May 2015 19:25:36 Alex Merry wrote:
> On Wednesday 13 May 2015 08:37:19 Kevin Funk wrote:
> > Right, and I just noticed a problem I didn't think of before: There's no
> > $PREFIX/include/KF5/$myframework/ where I could install
> > ${myframework}_version.h into for some of the frameworks :)
> > 
> > KConfig for instance has two libs, but only installs a single version
> > header. - $PREFIX/include/KF5/KConfigCore/...
> > - $PREFIX/include/KF5/KConfigGui/...
> > - $PREFIX/include/KF5/kconfig_version.h
> > 
> > Now in order to "move" kconfig_version.h to a proper location, I'd have to
> > install both a kconfigcore_version.h and kconfiggui_version.h  to their
> > resp. locations:
> > - $PREFIX/include/KF5/KConfigCore/kconfigcore_version.h
> > - $PREFIX/include/KF5/KConfigGui/kconfiggui_version.h
> > 
> > This would make the CMake code for installing the version header quite
> > different for those modules, so I'm wondering how to  proceed...
> 
> A possible solution is to install kconfig_version.h to
> $PREFIX/include/KF5/KConfig, and add that to the exported include paths for
> both libraries.

Good idea, no need to actually move the other headers.
This decreases chances of breakage.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list