Cannot compile - Windows 10

I managed to solve this issue.

TLDR: add -DENABLE_CCACHE=NO to your cmake call.

The problem is that ccache works incorrectly with .rc files and calls cl instead of rc for them.