Execute cmake.. error: cannot find llvm lit

Execution:

cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_CUDA=OFF

Error reporting can be avoided.

Note: this method will compile the CPU version and does not support GPU

Read More: