Fix Yocto cross build

After renaming the features, the if conditions need to be adjusted.
This commit is contained in:
Simon Hausmann 2022-09-23 14:12:21 +02:00
parent dbe9f33bb4
commit a24c33b8ea

View file

@ -166,7 +166,7 @@ endif(SLINT_STYLE)
# * We look for clang or gcc in PATH - unprefixed those are usually host compilers.
# * Through corrosion we know the correct host value of CC_<triplet>.
# Finally, we set CC_<host triplet> to clang or gcc and empty CFLAGS_<host triplet>
if((SLINT_FEATURE_RENDERER_SKIA OR SLINT_FEATURE_RENDERER_SKIA_OPENGL) AND CMAKE_CROSSCOMPILING AND Rust_CARGO_HOST_TARGET)
if((SLINT_FEATURE_RENDERER_WINIT_SKIA OR SLINT_FEATURE_RENDERER_WINIT_SKIA_OPENGL) AND CMAKE_CROSSCOMPILING AND Rust_CARGO_HOST_TARGET)
find_program(CLANG clang)
if(CLANG)
set(host_cc "${CLANG}")