Intellisense not recognising CMake compiler defines #2542
-
Hi, I'm using CMake Presets with vscode-cmake-tools. My selected preset applies compiler defines using target_compile_definitions() but VS Code Intellisense is not recognising those defines. Do I have to specify the defines explicitly in c_cpp_properties.json or should vscode-cmake-tools detect and apply them automatically? (I am running on Windows but using an ARM cross-compiler). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
vscode-cmake-tools should detect and apply defines automatically. But it looks like for your source file it is not being applied. |
Beta Was this translation helpful? Give feedback.
vscode-cmake-tools should detect and apply defines automatically. But it looks like for your source file it is not being applied.
I recommend you open the source file that is not configured properly and Run
CMake: log Diagnostics
on that and share the log with us.