From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1B87C55167 for ; Fri, 31 Jul 2026 07:30:54 +0000 (UTC) Received: from mail.chora.com (mail.chora.com [87.61.120.134]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1508.1785483047191545358 for ; Fri, 31 Jul 2026 00:30:47 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: chora.com, ip: 87.61.120.134, mailfrom: nhk@chora.com) Received: from CHEX01.chora.com (10.11.240.11) by CHEX01.chora.com (10.11.240.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.37; Fri, 31 Jul 2026 09:30:44 +0200 Received: from CHEX01.chora.com ([10.11.240.11]) by CHEX01.chora.com ([10.11.240.11]) with mapi id 15.02.2562.037; Fri, 31 Jul 2026 09:30:44 +0200 From: Nicolai Haastrup Knudsen To: "yocto@lists.yoctoproject.org" Subject: How to have support for two different SDKs in your CMake project? Thread-Topic: How to have support for two different SDKs in your CMake project? Thread-Index: AQHdIL3/MTGJI5VkEUyd5PQj+pNS4Q== Date: Fri, 31 Jul 2026 07:30:43 +0000 Message-ID: <8ed91132b51a437195398bafe1e4b8de@chora.com> Accept-Language: en-DK, da-DK, en-US Content-Language: aa X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.11.10.22] Content-Type: multipart/alternative; boundary="_000_8ed91132b51a437195398bafe1e4b8dechoracom_" MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 31 Jul 2026 07:30:54 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto/message/66674 --_000_8ed91132b51a437195398bafe1e4b8dechoracom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi the community, I'm trying to use 2 SDK generated by the same project. Where the SDK_A runs= on platform A and SDK_B runs on platformB. It's the same application code = that shall run on both platforms but different hardware( GPU and CPU). Because the problem is when we are sourcing the SDK generated from the yoct= o project we can't build both only one and it will be nice development expe= rience to dependt on CMake toolchain files independently. I'm dreaming of being able to build the same application with CMake without= chaning shell/running in a sub-shell. Does there exist a known solution the problem or how do you guys work aroun= d this kind of problem? BR/Mvh Nicolai Haastrup Knudsen --_000_8ed91132b51a437195398bafe1e4b8dechoracom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi the community,

I'm trying to use 2 SDK generated by the same project. Where the SDK_A runs= on platform A and SDK_B runs on platformB. It's the same application code = that shall run on both platforms but different hardware( GPU and CPU).

Because the problem is when we are sourcing the SDK generated= from the yocto project we can't build both only one and it will be nice de= velopment experience to dependt on CMake toolchain files independently.

I'm dreaming of being able to build the same application with CMake without= chaning shell/running in a sub-shell.

Does there exist a known solution the problem or how do you guys work aroun= d this kind of problem?


BR/Mvh

Nicolai Haastrup Knudsen

--_000_8ed91132b51a437195398bafe1e4b8dechoracom_--