From patchwork Wed Dec 14 22:58:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ken Werner X-Patchwork-Id: 5729 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 703E623E33 for ; Wed, 14 Dec 2011 22:58:53 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 66F2CA182F6 for ; Wed, 14 Dec 2011 22:58:53 +0000 (UTC) Received: by mail-ey0-f180.google.com with SMTP id k10so1407643eaa.11 for ; Wed, 14 Dec 2011 14:58:53 -0800 (PST) Received: by 10.204.156.208 with SMTP id y16mr148211bkw.72.1323903533162; Wed, 14 Dec 2011 14:58:53 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs23441bkc; Wed, 14 Dec 2011 14:58:53 -0800 (PST) Received: by 10.213.22.1 with SMTP id l1mr1059483ebb.137.1323903531349; Wed, 14 Dec 2011 14:58:51 -0800 (PST) Received: from e06smtp17.uk.ibm.com (e06smtp17.uk.ibm.com. [195.75.94.113]) by mx.google.com with ESMTPS id 24si3444699eeu.13.2011.12.14.14.58.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 14 Dec 2011 14:58:51 -0800 (PST) Received-SPF: neutral (google.com: 195.75.94.113 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) client-ip=195.75.94.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 195.75.94.113 is neither permitted nor denied by best guess record for domain of ken.werner@linaro.org) smtp.mail=ken.werner@linaro.org Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Dec 2011 22:58:50 -0000 Received: from d06nrmr1806.portsmouth.uk.ibm.com ([9.149.39.193]) by e06smtp17.uk.ibm.com ([192.168.101.147]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 14 Dec 2011 22:58:48 -0000 Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pBEMwl9k2535586 for ; Wed, 14 Dec 2011 22:58:47 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pBEMwlhB024441 for ; Wed, 14 Dec 2011 15:58:47 -0700 Received: from bolide.boeblingen.de.ibm.com (dyn-9-152-224-84.boeblingen.de.ibm.com [9.152.224.84]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id pBEMwkDq024425; Wed, 14 Dec 2011 15:58:47 -0700 From: Ken Werner To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] Add EXTERNAL_TOOLCHAIN to CMAKE_FIND_ROOT_PATH Date: Wed, 14 Dec 2011 23:58:31 +0100 Message-Id: <1323903512-7344-3-git-send-email-ken.werner@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1323903512-7344-1-git-send-email-ken.werner@linaro.org> References: <1323903512-7344-1-git-send-email-ken.werner@linaro.org> x-cbid: 11121422-0542-0000-0000-0000005ECB69 This allows cmake to find the binaries of an external toolchain. Signed-off-by: Ken Werner --- meta/classes/cmake.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 432427e..8aec759 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -43,7 +43,7 @@ set( CMAKE_CXX_FLAGS_RELEASE "${OECMAKE_CXX_FLAGS_RELEASE}" CACHE STRING "CXXFLA # only search in the paths provided so cmake doesnt pick # up libraries and tools from the native build machine -set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ) +set( CMAKE_FIND_ROOT_PATH ${STAGING_DIR_HOST} ${STAGING_DIR_NATIVE} ${CROSS_DIR} ${OECMAKE_PERLNATIVE_DIR} ${OECMAKE_EXTRA_ROOT_PATH} ${EXTERNAL_TOOLCHAIN}) set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )