Hi,

On Fri, 2022-01-28 at 13:22 +0100, Tobias Neumann wrote:
> regarding my bug report
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=14703 I was
> forwarded to here to discuss requirements for a proper fix.
> 
> In the report, I already mentioned a non-generic workaround for that.
> By extending the CMAKE_FIND_ROOT_PATH with CMAKE_INSTALL_PREFIX.
> However this probably doesn't cover all ways a toolchain can be used.
> 
> Another solution could be to respect the user provided path and
> instead of overwriting the CMAKE_FIND_ROOT_PATH variable, to only
> extent it by the toolchains location.
> This however would make it quite easy for a toolchain build to break
> isolation, when wrong user input is set. I don't know how strong your
> requirements regarding that would be.
> 
> So feedback how a fix should look like and what requirements it needs
> to fulfill would be appreciated.

Firstly, I'm a little unclear on your exact use case. Just to be really clear,
are you using cmake within a bitbake build or are we talking about using cmake
from within an SDK or eSDK external to the project?

I'm guessing this is probably an SDK question but you never mention the SDK
anywhere so I wasn't entirely sure. I'll assume that in my next comment.

With the SDK, if you have two projects, one of which depends on the other, I
have to wonder where the first is being installed to? Usually I'd have expected
it to go into the target sysroot that the SDK toolchain is using, then it should
be found by the second build? We don't support multiple sysroots for building
things with the SDK.

I'm therefore still a bit puzzled about exactly what the issue is here so
perhaps you could give a little more detail on the above?

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#161278): 
https://lists.openembedded.org/g/openembedded-core/message/161278
Mute This Topic: https://lists.openembedded.org/mt/88743247/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to