One way to get cmake to build x86 on Windows with Visual Studio is like so:
cmake -G \"NMa
Besides CMAKE_GENERATOR_PLATFORM variable, there is also the -A switch
cmake -G "Visual Studio 16 2019" -A Win32
cmake -G "Visual Studio 16 2019" -A x64
https://cmake.org/cmake/help/v3.16/generator/Visual%20Studio%2016%202019.html#platform-selection
-A = Specify platform name if supported by
generator.