Configuring LLVM v6.0 RC2 on Windows

Hi LLVM-Devs,

When I try to configure LLVM v6.0 RC2 (SVN Rev #324869) on Windows (I haven’t yet had a chance to try on Linux), I get a series of errors such as this:

CMake Error at cmake/modules/AddLLVM.cmake:1333 (add_dependencies):

The dependency target “(” of target “check-all” does not exist.

Call Stack (most recent call first):

CMakeLists.txt:937 (add_lit_target)

Any ideas on what might be causing this? My invocation of CMake is as follows:

cmake -Wno-dev -G “Visual Studio 14 2015 Win64” …/llvm \








Maybe it's caused by the space after the X86 argument? Can you try removing all the -D flags, and see if that works? Then add them one by one to see which is the culprit?


Thanks Dimitry,

Turns out it was a mis-merged ‘CMakeLists.txt’ file where a stray ‘if(WIN32)’ managed to get inside a multiline ‘list(APPEND …)’ clause. I have it configured successfully now, and my next trick is to get the v6.0 version building with our changes.