Skip to contentSkip to conversation

How to have support for two different SDKs in your CMake project?

DISCUSSION Nicolai Haastrup Knudsen 1 participant 1 message Jul 31

lore
Share & tools
lore
#0 lore raw

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 development 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 around this kind of problem?

BR/Mvh

Nicolai Haastrup Knudsen