compile_commands.json produce a weird path style in 'command' section when using "MSYS Makefiles"
When using "MSYS Makefiles", I get compile_commands.json with filepath like /C/ instead of C:/ which causing confuision for language service such as clangd or ccls. In the CMakelists.txt, all inputted file path are windows style but got converted to /C/ whatsoever. Does it necessary? Can I somehow configure the output for compile_commands.json? In Unix Makefiles everthing is good but it casue other problem when I try to find package installed in msys2. Thanks in advance!
"directory": "G:/codes/DIASProject/build", "command": "/C/msys64/mingw64/bin/x86_64-w64-mingw32-g++.exe -I/G/codes/DIASProject/src/include -I/G/codes/DIASProject/src/include/DIAS_HEADERS -g -o CMakeFiles/TcpClient.dir/src/tcptestclient/main.cpp.obj -c /G/codes/DIASProject/src/tcptestclient/main.cpp", "file": "G:/codes/DIASProject/src/tcptestclient/main.cpp"