I have a simple C++ project which uses libclang to parse C++ source code. Currently my project uses the FindLLVM.cmake module to locate a local installation of LLVM (via
llvm-config) on the system, and use it to compile/link.
I’d like to instead use LLVM as a git submodule in my project. Is there a cmake-ish way to indicate that I want to build and use libclang from the submodule in my repo, instead of from the system?