A VStudio .proj file may contain filenames / directories with mismatching upper/lower case of the letters compared to the real filenames due to Windows isn't case sensitive.
I think there is an additional step needed to process the generated Makefiles again for being case sensitive and correcting the generated .cmake file.