From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18926: cmake-build-system should set CMAKE_INSTALL_LIBDIR and CMAKE_PREFIX_PATH Date: Sun, 01 Mar 2015 15:35:51 +0100 Message-ID: <87r3t8g4zc.fsf@gnu.org> References: <877fzdu45q.fsf@gmail.com> <87d295i556.fsf@gnu.org> <87sii02yax.fsf@gmail.com> <874mugp6oj.fsf@gnu.org> <871tpjb0hk.fsf@gmail.com> <87wq52327h.fsf@gnu.org> <87vbjcp8xx.fsf@gnu.org> <20150301095847.GA28759@debian> 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]:56614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS4zQ-0006xD-Sj for bug-guix@gnu.org; Sun, 01 Mar 2015 09:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YS4zP-0001Zs-Ua for bug-guix@gnu.org; Sun, 01 Mar 2015 09:37:04 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:57630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YS4zP-0001Zm-R2 for bug-guix@gnu.org; Sun, 01 Mar 2015 09:37:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YS4zP-000433-8r for bug-guix@gnu.org; Sun, 01 Mar 2015 09:37:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20150301095847.GA28759@debian> (Andreas Enge's message of "Sun, 1 Mar 2015 10:58:47 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: 18926@debbugs.gnu.org Andreas Enge skribis: > What would be desirable is the following: > In the definition of a search path, we need an additional transformation > (if it is not already there). We need to look for the regular expression > (.+)/(lib|lib64|share)/.+\.cmake$ > or maybe > (.+)/(lib|lib/[^/]+|share)/.+\.cmake$ > and put > \1 > into CMAKE_PREFIX_PATH. That=E2=80=99s not currently possible using the search path mechanism (and I can=E2=80=99t imagine such weird semantics.) I can imagine two solutions, in order of preference: 1. Find CMAKE_ environment variables that can be set using the search path mechanism. Many environment variables are documented, is there really none that we can use? 2. Add custom code to cmake-build-system.scm instead of using the search path mechanism. WDYT? Thanks for taking the time to investigate! Ludo=E2=80=99.