Otherwise CMake might throw and error: CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately: Z3_RETURNCODE (advanced) Z3_RETURNCODE__TRYRUN_OUTPUT (advanced)
See docs/CMake.html for instructions on how to build LLVM with CMake.