I’m generating a compilation database file compilation_commands.json by setting set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in the cmake.
The compilation_commands.json file was generating for both GCC & IAR toolchains. Now the issue is for IAR the included paths generating with double backward slashes. See below for example.
“command”: "D:\\IAR\\Ver8_50_1\\arm\\bin\\iccarm.exe --silent D:AppStub.c -Itmh -
I…\\…\\product\application -I…\\…\\shared\\common -I…\\…\\shared
whereas for GCC, it is with forwarding slash as expected.
Will it generate based on the toolchain?
Please help me in resolving.