CMake generate Visual Studio 2008 solution for Win32 and x64
问题 I am using CMake 2.8 under Windows XP and want to generate a Visual Studio 2008 solution file which contains Release and Debug configurations for both Win32 and x64. Can this be done by setting a CMake configuration variable in the CMakeLists.txt file? 回答1: The CMakeLists is not where you specify the generator ( makefile, XCode, Visual Studio ) for a project. The generator is specified when a user runs CMake on your source. 回答2: You should produce a solution file under a console with CMake