Unknown CMake command 'Add-llvm-library'


I’m trying to compile Clang and it seems like the error that is currently tripping up the compilation is: Unknown CMake command ‘Add-llvm-library’ Something I came across online was suggesting that it needed to add the package ‘llvm’ before calling that command.

I’m just using the most update build as pulled from the website. Any thoughts?

Thank you,

Are you building Clang relative to LLVM as described in http://clang.llvm.org/get_started.html? Even for CMake, Clang has to be in llvm/tools/, or you need to specify CLANG_PATH_TO_LLVM_BUILD and CLANG_PATH_TO_LLVM_SOURCE.