-
Hi, I'm trying to build my project with a C compiler different from the system default. When I launch the configuration, the C compiler seems unchanged and when I look to the exetnsion's output I see that the command used to configure CMake uses CMAKE_CC_COMPILER variable to configure C compiler instead of CMAKE_C_COMPILER : /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_CC_COMPILER:FILEPATH=<Path to the compiler I set in my kits file> --no-warn-unused-cli -S<source directory> -B<build directory> -G "Unix Makefiles" Why CMake Tools uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The tutorial that I followed to configure my |
Beta Was this translation helpful? Give feedback.
The tutorial that I followed to configure my
~/.local/share/CMakeTools/cmake-tools-kits.json
uses theCC
variable instead of theC
variable. After fixing it and restart VS Code, everything works fine.