There was still a cmake file that was explicitly referring to the GPL3 license. This was failing only on Windows.