How to build x86 and/or x64 on Windows from command line with CMAKE?
问题 One way to get cmake to build x86 on Windows with Visual Studio is like so: Start Visual Studio Command prompt for x86 Run cmake: cmake -G "NMake Makefiles" \path_to_source\ nmake One way to get cmake to build x64 on Windows with Visual Studio is like so: Start Visual Studio Command prompt for x64 Run cmake: cmake -G "NMake Makefiles" \path_to_source\ nmake Using Cmake, how do I compile either or both architectures? (like how Visual Studio does it from in the IDE) 回答1: This cannot be done