(cmake) Rewrite some parts of project files to better manage LLVM version