How to have support for two different SDKs in your CMake project?
Nicolai Haastrup Knudsen <[email protected]> Fri, 31 Jul 2026 07:30:43 +0000
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <[email protected]> |
--_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
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p>Hi the community,<br>
<br>
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).<br>
<br>
<span style=3D"font-family: Calibri, Helvetica, sans-serif, EmojiFont, &quo=
t;Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, &quo=
t;Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size=
: 16px;">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.</sp=
an><br>
<br>
I'm dreaming of being able to build the same application with CMake without=
chaning shell/running in a sub-shell.<br>
<br>
Does there exist a known solution the problem or how do you guys work aroun=
d this kind of problem?<br>
<br>
</p>
<p><br>
</p>
<div id=3D"Signature">
<div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size: 12pt; colo=
r: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, &q=
uot;Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, &q=
uot;Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>BR/Mvh<br>
<br>
Nicolai Haastrup Knudsen</p>
</div>
</div>
</div>
</body>
</html>
--_000_8ed91132b51a437195398bafe1e4b8dechoracom_--