Invalid _WIN32_WINNT value
Since upgrading to CMake 3.5.2 (from old 3.3), my projects don't build anymore.
I've compared the generated "vcxproj" files (between 3.3 and 3.5.2) anf the main difference is the value of _WIN32_WINNT macro.
- With CMake 3.3 : value is 0x602
- With CMake 3.5.2 : value is 0x0100000100050806
My project always fails to build when generated by CMake 3.5 (got hundreds of errors C2177, but not understandable because it fails on winnt.h... )
When I manually revert the macro value, the project build nicely.
My environment
- Windows 10
- Visual Studio 2015 Enterprise edition
- CMake 3.5.2