From: Carlos Santos Date: Fri, 5 May 2017 19:43:42 -0300 (BRT) Subject: [Buildroot] [PATCH 2/3] core: allow having a list of "cmake" candidates In-Reply-To: <20170505210928.GB3001@scaer> References: <1494016231-50639-1-git-send-email-casantos@datacom.ind.br> <1494016231-50639-3-git-send-email-casantos@datacom.ind.br> <20170505210928.GB3001@scaer> Message-ID: <1806928464.21765876.1494024222751.JavaMail.zimbra@datacom.ind.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > From: "Yann E. MORIN" > To: "Carlos Santos" > Cc: buildroot at buildroot.org > Sent: Friday, May 5, 2017 6:09:28 PM > Subject: Re: [Buildroot] [PATCH 2/3] core: allow having a list of "cmake" candidates >> @@ -10,9 +10,10 @@ >> # >> BR2_CMAKE_VERSION_MIN = 3.1 >> >> -BR2_CMAKE ?= cmake >> -ifeq ($(call suitable-host-package,cmake,\ >> - $(BR2_CMAKE) $(BR2_CMAKE_VERSION_MIN)),) >> +BR2_CMAKE_CANDIDATES ?= cmake > > Do not rename the variable; keep it named BR2_CMAKE. > > It was named as such so that one could do: > > $ make BR2_CMAKE=/path/to/my/cmake3 > > and we want to keep it as such, so people can override the cmake they > want to use. > > By the way, I hope you knew you could do that, didn't you? ;-) I did not rename the variable. It is still BR2_CMAKE and you still can pass it in the command line (yes, I knew). >> +BR2_CMAKE ?= $(call suitable-host-package,cmake,\ ^^^^^^^^^^^^^ >> + $(BR2_CMAKE_CANDIDATES) $(BR2_CMAKE_VERSION_MIN)) >> +ifeq ($(BR2_CMAKE),) >> BR2_CMAKE = $(HOST_DIR)/usr/bin/cmake >> BR2_CMAKE_HOST_DEPENDENCY = host-cmake >> endif >> -- >> 1.8.3.1 -- Carlos Santos (Casantos) - DATACOM, P&D ?The greatest triumph that modern PR can offer is the transcendent success of having your words and actions judged by your reputation, rather than the other way about.? ? Christopher Hitchens