From kde-buildsystem Fri May 08 20:05:06 2009 From: Thiago Macieira Date: Fri, 08 May 2009 20:05:06 +0000 To: kde-buildsystem Subject: Re: cmake linking to old libraries. Bug or feature? (was: Re: Message-Id: <200905082205.16880.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=124181322221255 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0539409280==" --===============0539409280== Content-type: multipart/signed; boundary=nextPart5240828.Dg4T9tl6U9; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit --nextPart5240828.Dg4T9tl6U9 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Andreas Pakulat wrote: >> Then I deleted the the lib/cmake/KdepimLibs-4.3.0/ directory from my >> KDE 4 installation and things started working without any version >> number at all (the code before my commit). I can't explain why. But >> this is a surprise factor and could be a bug. > >Not if you've read man cmake :) The find_package section explains how > cmake finds packages if in the config-mode (the one that searches in >lib/cmake// for a Config.cmake). It simply searches > for */Config.cmake and then runs > ConfigVersion.cmake to let the module check for version > compatibility. If it finds a compatible one, then it takes that one. My point is this: I had lib/cmake/KdepimLibs-4.2.0/ lib/cmake/KdepimLibs-4.2.85/ lib/cmake/KdepimLibs-4.3.0/ Like that, it doesn't build. The command-line had libakonadi-kde.so.4.2.0=20 in it. So I removed lib/cmake/KdepimLibs-4.3.0/ and then suddenly it starts=20 compiling. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 --nextPart5240828.Dg4T9tl6U9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBKBJByM/XwBW70U1gRAiPUAJ4qURel0kJ0Bt4vz9EbWZFL2XC2IACglnjA FWeKnMGetTopQ4h/w29CbpU= =XKlv -----END PGP SIGNATURE----- --nextPart5240828.Dg4T9tl6U9-- --===============0539409280== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem --===============0539409280==--