It compiles fine both natively and with my cross-compiling system (buildroot). But buildroot doesn't use toolchain files but sets a lot of environment variables to get cmake to find the right toolchain. Not sure if and how it would work with a different cross-compiling approach.