You might want to look at Modules/Platform/Windows-cl.cmake... It uses EXEC_PROGRAM to get the version of the MS compiler. You could see how that works. Look in CVS CMake. -Bill