If you DO care about semantic support for C-family languages, then yourcmake call will be a bit more complicated. We'll assume you downloaded abinary distribution of LLVM+Clang from llvm.org in step 3 and that youextracted the archive file to folder ~/ycm_temp/llvm_root_dir (with bin,lib, include etc. folders right inside that folder). With that in mind,run the following command in the ycm_build directory:
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/cpp
Now that makefiles have been generated, simply run:
make ycm_support_libs
For those who want to use the system version of libclang, you would pass-DUSE_SYSTEM_LIBCLANG=ON to cmake instead of the-DPATH_TO_LLVM_ROOT=... flag.
You could also force the use of a custom libclang library with-DEXTERNAL_LIBCLANG_PATH=/path/to/libclang.so flag (the library would endwith .dylib on a Mac). Again, this flag would be used instead of theother flags.
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/cpp
Now that makefiles have been generated, simply run:
make ycm_support_libs
For those who want to use the system version of libclang, you would pass-DUSE_SYSTEM_LIBCLANG=ON to cmake instead of the-DPATH_TO_LLVM_ROOT=... flag.
You could also force the use of a custom libclang library with-DEXTERNAL_LIBCLANG_PATH=/path/to/libclang.so flag (the library would endwith .dylib on a Mac). Again, this flag would be used instead of theother flags.