CMake LIBMTP Version Detection

Gavin Beatty gavinbeatty at gmail.com
Fri Sep 12 12:41:57 CEST 2008


On Thu, Sep 11, 2008 at 11:29 AM, Alejandro Wainzinger
<aikawarazuni at gmail.com> 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:
> http://websvn.kde.org/trunk/extragear/multimedia/amarok/cmake/modules/FindMtp.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

-- 
Gavin Beatty

SEMPER UBI SUB UBI


More information about the Kde-buildsystem mailing list