From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: CMAKE_LIBRARY_PATH & co. Date: Mon, 14 Oct 2013 14:31:40 +0200 Message-ID: <87li1w5903.fsf@gnu.org> References: <87mwmc9vci.fsf@gnu.org> <20131014072305.GA1965@vicerveza.homeunix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVhOC-0001nu-Mu for guix-devel@gnu.org; Mon, 14 Oct 2013 08:36:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VVhO6-00009k-WC for guix-devel@gnu.org; Mon, 14 Oct 2013 08:36:48 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:39985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VVhO6-00009Y-QZ for guix-devel@gnu.org; Mon, 14 Oct 2013 08:36:42 -0400 In-Reply-To: <20131014072305.GA1965@vicerveza.homeunix.net> (=?utf-8?Q?=22?= =?utf-8?Q?Llu=C3=ADs?= Batlle i Rossell"'s message of "Mon, 14 Oct 2013 09:23:05 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?utf-8?Q?Llu=C3=ADs?= Batlle i Rossell Cc: guix-devel@gnu.org Llu=C3=ADs Batlle i Rossell skribis: > On Mon, Oct 14, 2013 at 09:15:25AM +0200, Ludovic Court=C3=A8s wrote: >> Andreas Enge skribis: >>=20 >> > commit e78fd4ca636a19bc286747f8d91bda22cd8f08fd >> > Author: Andreas Enge >> > Date: Sun Oct 13 18:02:49 2013 +0200 >> > >> > guix: Make cmake build system aware of usual paths. >> >=20=20=20=20=20 >> > * guix/build/cmake-build-system.scm (configure): Set CMAKE_LIBRAR= Y_PATH to >> > LIBRARY_PATH and CMAKE_INCLUDE_PATH to CPATH. >>=20 >> I think this was discussed on IRC yesterday, but I=E2=80=99m not sure I = got it: >> are these needed because CMake explicitly looks for files in these >> directories instead of just running the compiler? >>=20 >> That would be a serious flaw of CMake. > > Right; for what I understand, FIND_LIBRARY, and FIND_PATH, look for files= in > specific directories. Then cmake takes a decision based in what it finds.= A > shared object, a static lib, ... Blech. That=E2=80=99s flawed because CMake=E2=80=99s auto-configuration rules beha= ve differently from what the compiler/linker actually do. So its configuration phase may end up making decisions based on erroneous information. Thanks for the explanations, Ludo=E2=80=99.