CMake LIBMTP Version Detection

Alexander Neundorf neundorf at
Wed Oct 1 00:02:16 CEST 2008

On Friday 12 September 2008, Gavin Beatty wrote:
> On Thu, Sep 11, 2008 at 11:29 AM, Alejandro Wainzinger
> <aikawarazuni at> wrote:
> > Amarok needs libmtp version >= 0.3.0 to compile correctly, and in the
> > module this is tested for, and in the debug output during
> > configuration it appears to properly detect whether or not the version
> > requirement is met, but during compilation it seems to ignore this and
> > tries to build even if the version is < 0.3.0 .  I'm pasting the
> > FindMtp.cmake file here for convenience, but it's available at:
> >
> >dMtp.cmake?revision=845877&view=markup
> >
> > Any ideas?
> The Find*.cmake is trusting the cache. You probably have an old
> version found and stored in cache. Either clear your cache* or put in
> an extra if-check when cache version is trusted.
> *So go to build tree and
>   rm CMakeCache.txt

Or just remove the variables containing MTP from the cache, which you can do 
either directly in CMakeCache.txt (you shouldn't do that), or much more 
conveniently using cmake-gui, which has search, delete entries and much more 
features in a nice GUI :-)


More information about the Kde-buildsystem mailing list