Cannot generate 32 bit configuration for Visual Studio 2019 with host=x86 or -A Win32
问题 I am trying to configure cmake to build for 32bit and 64bit separately... So far 64bit is easy as I just need to add -A x64 cmake -G "Visual Studio 16 2019" -A x64 But I am not able to set 32bit arch. Official documentation suggest -A Win32 or -T host=x86 https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2016%202019.html Even with them I am not able to set x86 host What I have tried: cmake -G "Visual Studio 16 2019" -DCMAKE_GENERATOR_PLATFORM=x86 cmake -G "Visual Studio 16 2019"