From kde-buildsystem Sat Jan 12 17:46:37 2008 From: Michael Pyne Date: Sat, 12 Jan 2008 17:46:37 +0000 To: kde-buildsystem Subject: Re: Getting rid of the LIB_INSTALL_DIR hack on windows Message-Id: <200801121246.46653.mpyne () purinchu ! net> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=120016014305779 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0989015523==" --===============0989015523== Content-Type: multipart/signed; boundary="nextPart9326226.1zWje4SgU5"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart9326226.1zWje4SgU5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 12 January 2008, Christian Ehrlicher wrote: > Hi, > > I know we discussed this already, but I'm very unhappy with the current > solution. > The problem is (for all who don't remember) that we want to install the > shared libs into /bin on windows. When we install the shared libs into > /lib, we've to add an entry to the PATH env variable. Also it's not the > normal way to install shared libs in another location than the > executable - it would just confuse the user. > > Because of this a hack for LIB_INSTALL_DIR was added: > set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" > RUNTIME DESTINATION "bin" > LIBRARY DESTINATION "lib${LIB_SUFFIX}" > ARCHIVE DESTINATION "lib${LIB_SUFFIX}" ) > > This works fine until someone uses LIB_INSTALL_DIR in another context - > e.g. to install additional files, see kdepimlibs/gpgme++: > > Therefore I want to change all CMakeLists.txt from > > install(TARGETS foo DESTINATION ${LIB_INSTALL_DIR} ) > > to > > install(TARGETS foo RUNTIME DESTINATION ${BIN_IINSTALL_DIR} > LIBRARY DESTINATION ${LIB_INSTALL_DIR} > ARCHIVE DESTINATION ${LIB_INSTALL_DIR} > ) > > An additional macro install_kde_library() would work as well. I like the macro idea a beeellion times better. Especially since it docume= nts=20 the intent better (i.e. use this for libraries, not for anything else). Then we could switch libraries to use install_kde4_library() and leave the= =20 rest alone. > Any objections? > Christian --nextPart9326226.1zWje4SgU5 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBHiP0GqjQYp5Omm0oRAtcqAKDXv6rDjh9kDxnAABAMJo93YFjbRACdG8EP tRch5KdYYNLkCMHXHtudLOY= =2go2 -----END PGP SIGNATURE----- --nextPart9326226.1zWje4SgU5-- --===============0989015523== 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 --===============0989015523==--