How to use cmake to generate Visual Studio .sln and .vcxproj

Hello
I also encountered the same problem,
I tried to use scripts to change the absolute paths in the sln and vcxproj files generated by cmake to relative paths, but it was still not fully satisfied,
did you solve it?