about using clang on windows

Hi,
I used to compile my programs using CMake + VS2012’s NMake, the compiling is very simple:

cmake -G “NMake Makefiles” …
nmake

Now I found clang, can clang work with cmake and provide such easy way of compiling?

Thanks.

Hi,
I used to compile my programs using CMake + VS2012's NMake, the compiling is
very simple:

cmake -G "NMake Makefiles" ..
nmake

Now I found clang, can clang work with cmake and provide such easy way of
compiling?

CMake can use clang, yes.
http://www.cmake.org/Wiki/CMake_Useful_Variables#Compilers_and_Tools
(CMAKE_C_COMPILER and CMAKE_CXX_COMPILER)

[taking this back to the list so others can learn from it & contribute]

I honestly don't know what the state of Clang's windows support is.
But I believe we're getting better - though there's been some
discussion about these intrinsics lately, so they may not be
implemented yet.

Essentially: compiling arbitrary windows code (even the standard
windows headers) is 'hard', it's not necessarily standards
compliant/portable so Clang might not get all of it.

Others might be able to chime in with the current state of affairs in
this regard.