changes to how kdepimlibs and kdebase/workspace are installed and found

Alexander Neundorf neundorf at kde.org
Tue Dec 9 21:34:20 CET 2008


On Tuesday 09 December 2008, Modestas Vainius wrote:
> Hello,
>
> antradienis 09 Gruodis 2008, Brad King rašė:
> > I've fixed this in CMake HEAD:
> >
> > /cvsroot/CMake/CMake/Source/cmFindPackageCommand.cxx,v  <--
> > Source/cmFindPackageCommand.cxx
> > new revision: 1.52; previous revision: 1.51
>
> Thank you for such quick response and fix. Now I wish Alex could add
> support for this path to KDE. /usr/lib/Kdepimlibs and
> /usr/lib/KDE4Workspace currently contains only cmake stuff which are
> "found" via
> cmake/modules/Find{Kdepimlibs,KDE4Workspace}.cmake anyway. So it is easy to
> workaround lack of native cmake support for this path in 2.6.2.

So we'll have to do something like:

if (${CMAKE_VERSION_MAJOR}.${CMAKE_VERSION_MINOR}.${CMAKE_VERSION_PATCH} 
VERSION_GREATER 2.6.2)
   set(configInstallDir ${LIB_INSTALL_DIR}/cmake/kfoo)
else ()
   set(configInstallDir ${LIB_INSTALL_DIR}/kfoo/cmake)
endif ()

install(EXPORT ... DESTINATION ${configInstallDir})

Hmm, not nice, but if you really want it, I guess we'll do that.

Should we include the version number ?
   set(configInstallDir ${LIB_INSTALL_DIR}/kfoo-x.y.z/cmake)

Brad: is this version number considered when specifying a minimum version for 
the package or is it ignored and only a fooVersion.cmake file will be used ?

Alex


More information about the Kde-buildsystem mailing list