Skip to contentSkip to conversation

support for multi project toolchain-cmake

RFC [email protected] 1 participant 1 message Jan 28, 2022

lore
Share & tools
lore
#0 lore raw

Hello everybody,

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.

best regards
Tobias