What is the default generator for CMake in Windows?
问题 When running CMake on one PC, CMake generates NMake files by default. On another, it generates a Visual Studio project. I know I can override the default by adding -G "NMake Makefiles" to the end of my CMake statement, but I want to know why it defaults to Visual Studio projects on one and NMake files on another. 回答1: The following is from the CMake Source (version 2.8.4: cmake.cxx: starting line 2039): // Try to find the newest VS installed on the computer and // use that as a default if -G