llvm and clang: trying to "cmake" a "Visual Studio 10"

All,

I posted this to the ‘users list’ but I have not recevied a response, so I decided to re-post here.

I’d say that CMake is unable to detect you Visual Studio, and I’m not sure what mechanism they use to do that. But you could try running your command from the Visual Studio Tools Command Prompt.

This is likely being caused by trying to execute CMake inside the source directory. Try creating an empty directory somewhere, say “llvm-build” and run CMake from that directory, and point it at the source. I don’t think LLVM plays very well with in-tree builds.

CMake 2.8 works fine with every version of VS I’ve tried it with here. Running from a VS command line shouldn’t usually be necessary.

Gordon Keiser
Software Development Engineer

Arxan Technologies