[CMake] Fixed generating windows build