New comment by MIvanchev on void-packages repository https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875008154 Comment: Thanks to you both @chrysos349 and @oreo639!! It worked but I was somehow expecting for the emulation to happen automatically. At least that's what the docs on this property say https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html but I guess one has to set it manually.