[Bug] Stop add `-DCMAKE_EXPORT_COMPILE_COMMANDS` if using cmake preset
bug
### Brief Issue Summary
Hi, I noticed `-DCMAKE_EXPORT_COMPILE_COMMANDS` always passed to cmake even using cmake preset. I try uncheck `Export Compile Commands File` setting, but it just pass `-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=FALSE` to cmake.
I believe it's sensible to not pass `-DCMAKE_EXPORT_COMPILE_COMMANDS`, as it will cause warning even it's value is FALSE when my cmake project LANGUAGES is NONE.
### CMake Tools Diagnostics
```shell
[cmake] -- Configuring done (0.3s)
[cmake] -- Generating done (0.0s)
[cmake] CMake Warning:
[cmake] Manually-specified variables were not used by the project:
[cmake]
[cmake] CMAKE_EXPORT_COMPILE_COMMANDS
[cmake]
[cmake]
[cmake] -- Build files have been written to: /path/to/project
```
### Debug Log
```shell
nop
```
### Additional Information
_No response_
1 条评论