Erro ao usar o CMake com LLVM

Então, estou tentando criar um compilador de brinquedos usando o LLVM e gostaria de usar o CMake como meu sistema de compilação. Eu tentei usar oexemplo CMakeLists.txt do site da LLVM, mas encontro o seguinte erro ao executarcmake:

CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:178  (include):
  include could not find load file:

    /usr/share/llvm/cmake/LLVMExports.cmake
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)


CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:181 (include):
  include could not find load file:

    /usr/share/llvm/cmake/LLVM-Config.cmake
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)

Quando fui investigar o problema, descobri que o caminho no meu sistema é realmente/usr/share/llvm-3.8/. Quando tentei mudar o caminho para/usr/share/llvm/ como ele espera, recebo outro erro:

CMake Error at /usr/share/llvm/cmake/LLVMExports.cmake:1034 (message):
  The imported target "LLVMSupport" references the file

     "/usr/lib/libLLVMSupport.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/share/llvm/cmake/LLVMExports.cmake"

  but not all the files it references.

Eu realmente não sou especialista em como exatamente o CMake funciona, por isso não tenho certeza para onde ir a partir daqui. Estou executando o Ubuntu 16.04 e tentei instalar o LLVM através de vários pacotes diferentes com os mesmos resultados. Isso é um problema com o sistema de empacotamento do Ubuntu ou é algo que eu posso corrigir?

questionAnswers(5)

yourAnswerToTheQuestion