New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/issues/48034#issuecomment-1875373916 Comment: - No, it's not broken, `CROSSCOMPILING_EMULATOR` works - No, your reading in https://cmake.org/cmake/help/latest/prop_tgt/CROSSCOMPILING_EMULATOR.html is not wrong, you're reading it correctly - However, it's not simply like that. - In order to ask cmake use `CROSSCOMPILING_EMULATOR` to run those foreign executable, you need to tell cmake to run a target, instead of running some random files. For example: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L24-L45 In your case, remove `${CMAKE_BINARY_DIR}/bin/` from https://github.com/LibreSprite/LibreSprite/blob/e3c4506ebc8f5a25a3e558c9d482445b7bc193be/src/app/CMakeLists.txt#L12 may work (untested) If not, you may need to do this dance: https://github.com/fcitx/fcitx5/blob/1bf0cebe286aeeb87f9b7ae7e4ad69107abb095a/src/modules/spell/CMakeLists.txt#L25C35-L25C35