<div dir="ltr">I'm new to LLVM and also new to Cmake. I've checked out multiple LLVM projects including clang  (see below for list of projects checked out).  I made the build directory. <div><br></div><div>My question has three possible answers - A,B, or C, but if the answer is neither of those 3 can you please describe in detail what the correct answer is. </div><div><br></div><div>My question is this,  "Can I run cmake (A) with the path ONLY to the root of the LLVM project to build ALL of the projects I checked out, or (B) do I have to supply the path to the root of all the projects I checked out to cmake at once, or (C) do I run cmake multiple times in succession with a new path each time to the respective project I am building"</div><div><br></div><div>Thank you in advance</div><div><br></div><div><br><div><br></div><div><div>#. Checkout LLVM:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/llvm/trunk">http://llvm.org/svn/llvm-project/llvm/trunk</a> llvm``</div><div><br></div><div>#. Checkout Clang:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/tools``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/cfe/trunk">http://llvm.org/svn/llvm-project/cfe/trunk</a> clang``</div><div><br></div><div>#. Checkout LLD linker **[Optional]**:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/tools``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/lld/trunk">http://llvm.org/svn/llvm-project/lld/trunk</a> lld``</div><div><br></div><div>#. Checkout Polly Loop Optimizer **[Optional]**:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/tools``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/polly/trunk">http://llvm.org/svn/llvm-project/polly/trunk</a> polly``</div><div><br></div><div>#. Checkout Compiler-RT (required to build the sanitizers) **[Optional]**:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/projects``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk">http://llvm.org/svn/llvm-project/compiler-rt/trunk</a> compiler-rt``</div><div><br></div><div>#. Checkout Libomp (required for OpenMP support) **[Optional]**:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/projects``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/openmp/trunk">http://llvm.org/svn/llvm-project/openmp/trunk</a> openmp``</div><div><br></div><div>#. Checkout libcxx and libcxxabi **[Optional]**:</div><div><br></div><div>   * ``cd where-you-want-llvm-to-live``</div><div>   * ``cd llvm/projects``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/libcxx/trunk">http://llvm.org/svn/llvm-project/libcxx/trunk</a> libcxx``</div><div>   * ``svn co <a href="http://llvm.org/svn/llvm-project/libcxxabi/trunk">http://llvm.org/svn/llvm-project/libcxxabi/trunk</a> libcxxabi``</div></div></div></div>