So I\'m trying to build a toy compiler using LLVM and I\'d like to use CMake as my build system. I tried using the sample CMakeLists.txt from LLVM\'s website, but I encounte
The easiest option is to install a version of LLVM that doesn't have that problem: the error disappeared for me after doing:
apt-get remove llvm apt-get autoremove apt-get install llvm-3.9
(Tested on Ubuntu 16.04.)