Set x86 for Unix Makefiles generated project with MSVC toolchain
Hi,
I've created docker with MVSC 2015 in Wine. Copied necessary MSVC buildtool and Windows SDK inside.
Then - with cmake_msvc2015_wine.cmake toolchain cmake file - I created cmake project.
Yet, each time I run it - it always sets x64 as machine. Even settings CMAKE_<>_LINKER_FLAGS to "/machine:x86" didn't helped. At the end, during linking it complains that some thirdparty libraries are x86 and trying to link with machine target x64.
Then I changed MSVC buildtools to x86 (other folder) and now cmake sets x86 as architecture. However - now other problems arise.
If I understand correctly - x64 cl.exe should be able to generate x86 modules and objects. Then how to force cmake to do so? What do I need to set?