fix cmake win32 project generation
Merge pull request #6054 from maksqwe/cmake_fix

fix cmake win32 project generation