Please provide
- Operating system: Win 10
- Visual Studio version: VS 2022 Professional (17.9)
- SonarLint plugin version: 7.6
- Programming language you’re coding in: C/C++
- Is connected mode used: no
And a thorough description of the problem / question:
Hey guys,
after the latest VS update (which probably did result in a CMake Update) i’m getting lots of " Unsupported configuration: Unexpanded response file is not supported xxxxxx..cpp.obj.modmap"
errors in Sonarlint.
I’m using CMakePresets and I’m generating my compile_commands.json via Cmake.
From another thread I have learned that sonarlint does not expand paths by itself.
Now I can obviously use the solution and then everything works fine, but I prefer the use Ninja Multi Config Generator because it is much faster.
Unfortunately the solution suggested in this thread CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES
only works for Makefile Generators. It’s not even documented in the Cmake docs. Do you have another idea how to make CMake produce a compatible compile_commands.json.
(It would be even better if sonarlint would support cmake presets out of the box, then I would not need the workaround with the compile_commands.json )
Thx guys for your help