From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dd5638.kasserver.com (dd5638.kasserver.com [85.13.130.155]) by mail.openembedded.org (Postfix) with ESMTP id 1EB1060962 for ; Thu, 11 Jun 2015 19:10:47 +0000 (UTC) Received: from [192.168.1.100] (unknown [176.2.124.80]) by dd5638.kasserver.com (Postfix) with ESMTPSA id 3DB125600077; Thu, 11 Jun 2015 21:10:43 +0200 (CEST) Message-ID: <5579DD2D.10104@herbrechtsmeier.net> Date: Thu, 11 Jun 2015 21:10:37 +0200 From: Stefan Herbrechtsmeier User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Moritz Blume , openembedded-core@lists.openembedded.org References: <1433921778-1835-1-git-send-email-moritz.blume@bmw-carit.de> <1433921778-1835-2-git-send-email-moritz.blume@bmw-carit.de> In-Reply-To: <1433921778-1835-2-git-send-email-moritz.blume@bmw-carit.de> Subject: Re: [PATCH v3 2/2] cmake: Upgrade 2.8.12.2 -> 3.2.2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2015 19:10:48 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Am 10.06.2015 um 09:36 schrieb Moritz Blume: > Patches "qt4-fail-silent.patch" and "support-oe-qt4-tools-names.patch" > were adapted in order to fit to CMake 3.2.2 (refer to the commit > message in the respective patch for details). > Patch "cmake-2.8.11.2-FindFreetype.patch" was dropped since it was > rejected upstream and its functionality otherwise implemented in the > meantime. > > Note that CMake 3 needs to have the full compiler path in the toolchain > file (see cmake.bbclass). Why is the full path needed? Have you try to add STAGING_BINDIR_TOOLCHAIN to the CMAKE_FIND_ROOT_PATH? > diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass > index 1ebb936..c97fd02 100644 > --- a/meta/classes/cmake.bbclass > +++ b/meta/classes/cmake.bbclass > @@ -10,9 +10,11 @@ CCACHE = "" > # We want the staging and installing functions from autotools > inherit autotools > > -# C/C++ Compiler (without cpu arch/tune arguments) > -OECMAKE_C_COMPILER ?= "`echo ${CC} | sed 's/^\([^ ]*\).*/\1/'`" > -OECMAKE_CXX_COMPILER ?= "`echo ${CXX} | sed 's/^\([^ ]*\).*/\1/'`" > +# Full path to C/C++ Compiler (without cpu arch/tune arguments) > +C_COMPILER = "$(echo ${CC} | sed 's/^\([^ ]*\).*/\1/')" > +CXX_COMPILER = "$(echo ${CXX} | sed 's/^\([^ ]*\).*/\1/')" > +OECMAKE_C_COMPILER ?= "$(which ${C_COMPILER})" > +OECMAKE_CXX_COMPILER ?= "$(which ${CXX_COMPILER})" > OECMAKE_AR ?= "${AR}" Why you don't use the full path for AR?