You can definitely configure CMake to do cross compilation though I’ve not done it with Glow myself (here’s, e.g., an example of how to cross-compile llvm/clang itself: https://llvm.org/docs/HowToCrossCompileLLVM.html 20).  The main things to do are to set --target and --sysroot appropriately in your CMAKE_CXX_FLAGS.