Mbed CE startup project failed using VsCode

Hello all, I´ve just started trying Mbed CE, I have followed the startup process described in the wiki and for windows/vscode, here I list my cmake-variants.yaml content, the output messages and screen capture.
Basically the errors are related to greentea-client-src, and not found cstddef file.

Sorry but I have no idea what is going on, could you help me please?

Thank you very much

buildType:
  default: Develop
  choices:
    Develop:
      short: Develop
      long: Emit debug information but also optimize
      buildType: Develop
    Debug:
      short: Debug
      long: Emit debug information and don't optimize
      buildType: Debug
    Release:
      short: Release
      long: Optimize generated code
      buildType: Release
board:
  default: NUCLEO_G474RE
  choices:
    NUCLEO_G474RE:
      short: NUCLEO_G474RE
      settings:
        MBED_TARGET: NUCLEO_G474RE
        UPLOAD_METHOD: STM32CUBE

[main] Configuring folder: mbedCE

[driver] Removing c:/mbedCE/build/CMakeCache.txt

[driver] Removing c:\mbedCE\build\CMakeFiles

[proc] Executing command: “C:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G “MinGW Makefiles”

[cmake] Not searching for unused variables given on the command line.

[cmake] – Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0/python3.10.exe (found version “3.10.8”) found components: Interpreter

[cmake] – Checking for Python package intelhex – found

[cmake] – Checking for Python package prettytable – found

[cmake] – Checking for Python package future – found

[cmake] – Checking for Python package jinja2 – found

[cmake] – Checking for Python package mbed_tools – found

[cmake] – Mbed: First CMake run detected, generating configs…

[cmake] mbed_config.cmake has been generated and written to ‘C:\mbedCE\build\mbed_config.cmake’

[cmake] – The C compiler identification is GNU 12.2.0

[cmake] – The CXX compiler identification is GNU 12.2.0

[cmake] – The ASM compiler identification is GNU

[cmake] – Found assembler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe

[cmake] – Detecting C compiler ABI info

[cmake] – Detecting C compiler ABI info - done

[cmake] – Check for working C compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe - skipped

[cmake] – Detecting C compile features

[cmake] – Detecting C compile features - done

[cmake] – Detecting CXX compiler ABI info

[cmake] – Detecting CXX compiler ABI info - done

[cmake] – Check for working CXX compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-g++.exe - skipped

[cmake] – Detecting CXX compile features

[cmake] – Detecting CXX compile features - done

[cmake] – Mbed: Target does not have any upload method configuration. ‘make flash-’ commands will not be available unless configured by the upper-level project.

[cmake] – Detected VS Code IDE, will generate VS Code debug configurations

[cmake] – Mbed: Not building any Mbed OS tests.

[cmake] [ 11%] Performing download step (git clone) for ‘greentea-client-populate’

[cmake] Cloning into ‘greentea-client-src’…

[cmake] HEAD is now at 472aad2 Merge pull request #37 from rwalton-arm/protect_include_ctest

[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: basename: command not found

[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: command not found

[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found

[cmake] CMake Error at greentea-client-subbuild/greentea-client-populate-prefix/tmp/greentea-client-populate-gitclone.cmake:62 (message):

[cmake] Failed to update submodules in: ‘C:/mbedCE/build/_deps/greentea-client-src’

[cmake]

[cmake]

[cmake] mingw32-make.exe[2]: *** [greentea-client-populate-prefix/src/greentea-client-populate-stamp/greentea-client-populate-download] Error 1

[cmake] – Configuring incomplete, errors occurred!

[cmake] See also “C:/mbedCE/build/CMakeFiles/CMakeOutput.log”.

[cmake] See also “C:/mbedCE/build/CMakeFiles/CMakeError.log”.

[cmake] mingw32-make.exe[1]: *** [CMakeFiles/greentea-client-populate.dir/all] Error 2

[cmake] mingw32-make.exe: *** [all] Error 2

[cmake]

[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1604 (message):

[cmake] Build step for greentea-client failed: 2

[cmake] Call Stack (most recent call first):

[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)

[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744 (cmake_language)

[cmake] C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1958 (FetchContent_Populate)

[cmake] mbed-os/extern/CMakeLists.txt:12 (FetchContent_MakeAvailable)

[cmake]

[cmake]

[proc] The command: “C:\Program Files\CMake\bin\cmake.EXE” --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G “MinGW Makefiles” exited with code: 1 and signal: null

First what I see

This seems be the problem.

For reference check this - mbed-os/targets/upload_method_cfg at master · mbed-ce/mbed-os (github.com)

BR, Jan

Thank you Jan, I have created the NUCLEO_G474RE.cmake (based on F429ZI one), and no longer complains about that, but the other errors still there.

[main] Configuring folder: mbedCE 
[driver] Removing c:/mbedCE/build/CMakeCache.txt
[driver] Removing c:\mbedCE\build\CMakeFiles
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G "MinGW Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0/python3.10.exe (found version "3.10.8") found components: Interpreter 
[cmake] -- Checking for Python package intelhex -- found
[cmake] -- Checking for Python package prettytable -- found
[cmake] -- Checking for Python package future -- found
[cmake] -- Checking for Python package jinja2 -- found
[cmake] -- Checking for Python package mbed_tools -- found
[cmake] -- Mbed: First CMake run detected, generating configs...
[cmake] mbed_config.cmake has been generated and written to 'C:\mbedCE\build\mbed_config.cmake'
[cmake] -- The C compiler identification is GNU 12.2.0
[cmake] -- The CXX compiler identification is GNU 12.2.0
[cmake] -- The ASM compiler identification is GNU
[cmake] -- Found assembler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-g++.exe - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Mbed: Loading default upload method configuration from targets/upload_method_cfg/NUCLEO_G474RE.cmake
[cmake] -- Detected VS Code IDE, will generate VS Code debug configurations
[cmake] -- Mbed: Not building any Mbed OS tests.
[cmake] [ 11%] Performing download step (git clone) for 'greentea-client-populate'
[cmake] Cloning into 'greentea-client-src'...
[cmake] HEAD is now at 472aad2 Merge pull request #37 from rwalton-arm/protect_include_ctest
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found
[cmake] CMake Error at greentea-client-subbuild/greentea-client-populate-prefix/tmp/greentea-client-populate-gitclone.cmake:62 (message):
[cmake]   Failed to update submodules in: 'C:/mbedCE/build/_deps/greentea-client-src'
[cmake] 
[cmake] 
[cmake] mingw32-make.exe[2]: *** [greentea-client-populate-prefix/src/greentea-client-populate-stamp/greentea-client-populate-download] Error 1
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/mbedCE/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "C:/mbedCE/build/CMakeFiles/CMakeError.log".
[cmake] mingw32-make.exe[1]: *** [CMakeFiles/greentea-client-populate.dir/all] Error 2
[cmake] mingw32-make.exe: *** [all] Error 2
[cmake] 
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1604 (message):
[cmake]   Build step for greentea-client failed: 2
[cmake] Call Stack (most recent call first):
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744 (cmake_language)
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1958 (FetchContent_Populate)
[cmake]   mbed-os/extern/CMakeLists.txt:12 (FetchContent_MakeAvailable)
[cmake] 
[cmake] 
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE -Bc:/mbedCE/build -G "MinGW Makefiles" exited with code: 1 and signal: null

it looks like you are building in mbed-ce, not in a project directory. You should start with the mbed-ce HelloWorld program. GitHub - mbed-ce/mbed-ce-hello-world: Basic hello world using Mbed OS Community Edition
And you are using MinGW make, Ninja is easier to use I think. You have to download Ninja build tools also, please check in the wiki the toolchain setup guide.

Hello Johannes, same errors with the mbed-ce-HelloWorld program.
I followed carefully the installation steps from the wiki and ninja is installed, It seems cmake is selecting MinGW by itself as it is also installed in my PC, do you know how could I change the generator to ninja?
just to try, but it looks like it is related to greentea.

[main] Configuring folder: mbed-ce-hello-world 
[driver] Removing c:/mbedCE/mbed-ce-hello-world/build/CMakeCache.txt
[driver] Removing c:\mbedCE\mbed-ce-hello-world\build\CMakeFiles
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE/mbed-ce-hello-world -Bc:/mbedCE/mbed-ce-hello-world/build -G "MinGW Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0/python3.10.exe (found version "3.10.8") found components: Interpreter 
[cmake] -- Checking for Python package intelhex -- found
[cmake] -- Checking for Python package prettytable -- found
[cmake] -- Checking for Python package future -- found
[cmake] -- Checking for Python package jinja2 -- found
[cmake] -- Checking for Python package mbed_tools -- found
[cmake] -- Mbed: First CMake run detected, generating configs...
[cmake] mbed_config.cmake has been generated and written to 'C:\mbedCE\mbed-ce-hello-world\build\mbed_config.cmake'
[cmake] -- The C compiler identification is GNU 12.2.0
[cmake] -- The CXX compiler identification is GNU 12.2.0
[cmake] -- The ASM compiler identification is GNU
[cmake] -- Found assembler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe
[cmake] -- Detecting C compiler ABI info
[cmake] -- Detecting C compiler ABI info - done
[cmake] -- Check for working C compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-gcc.exe - skipped
[cmake] -- Detecting C compile features
[cmake] -- Detecting C compile features - done
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: C:/Program Files (x86)/Arm GNU Toolchain arm-none-eabi/12.2 mpacbti-bet1/bin/arm-none-eabi-g++.exe - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- Mbed: Loading default upload method configuration from targets/upload_method_cfg/NUCLEO_G474RE.cmake
[cmake] -- Detected VS Code IDE, will generate VS Code debug configurations
[cmake] -- Mbed: Not building any Mbed OS tests.
[cmake] [ 11%] Performing download step (git clone) for 'greentea-client-populate'
[cmake] Cloning into 'greentea-client-src'...
[cmake] HEAD is now at 472aad2 Merge pull request #37 from rwalton-arm/protect_include_ctest
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: basename: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 7: sed: command not found
[cmake] C:/Program Files/Git/mingw64/libexec/git-core\git-submodule: line 22: .: git-sh-setup: file not found
[cmake] CMake Error at greentea-client-subbuild/greentea-client-populate-prefix/tmp/greentea-client-populate-gitclone.cmake:62 (message):
[cmake]   Failed to update submodules in:
[cmake]   'C:/mbedCE/mbed-ce-hello-world/build/_deps/greentea-client-src'
[cmake] 
[cmake] 
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/mbedCE/mbed-ce-hello-world/build/CMakeFiles/CMakeOutput.log".
[cmake] See also "C:/mbedCE/mbed-ce-hello-world/build/CMakeFiles/CMakeError.log".
[cmake] mingw32-make.exe[2]: *** [greentea-client-populate-prefix/src/greentea-client-populate-stamp/greentea-client-populate-download] Error 1
[cmake] mingw32-make.exe[1]: *** [CMakeFiles/greentea-client-populate.dir/all] Error 2
[cmake] mingw32-make.exe: *** [all] Error 2
[cmake] 
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1604 (message):
[cmake]   Build step for greentea-client failed: 2
[cmake] Call Stack (most recent call first):
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1744 (cmake_language)
[cmake]   C:/Program Files/CMake/share/cmake-3.24/Modules/FetchContent.cmake:1958 (FetchContent_Populate)
[cmake]   mbed-os/extern/CMakeLists.txt:12 (FetchContent_MakeAvailable)
[cmake] 
[cmake] 
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE/mbed-ce-hello-world -Bc:/mbedCE/mbed-ce-hello-world/build -G "MinGW Makefiles" exited with code: 1 and signal: null

Ninja needs to be in the search path that cmake can find it. When you open a command prompt and type ‘ninja --version’, is it found?
When ninja is found, the cmake call will have ‘-G ninja’ in the output.

Yes, as in the wiki I put ninja in same directory as CMake that it is in the path. My ninja version is 1.11.1

Crazy thing , I have uninstall MinGW (deleted also cmake cache) and now it is complaining missing MinGW, I expect cmake will detect ninja and select it.

[main] Configuring folder: mbed-ce-hello-world 
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE/mbed-ce-hello-world -Bc:/mbedCE/mbed-ce-hello-world/build -G "MinGW Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Found Python3: C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0/python3.10.exe (found version "3.10.8") found components: Interpreter 
[cmake] -- Checking for Python package intelhex -- found
[cmake] -- Checking for Python package prettytable -- found
[cmake] -- Checking for Python package future -- found
[cmake] -- Checking for Python package jinja2 -- found
[cmake] -- Checking for Python package mbed_tools -- found
[cmake] -- Mbed: First CMake run detected, generating configs...
[cmake] mbed_config.cmake has been generated and written to 'C:\mbedCE\mbed-ce-hello-world\build\mbed_config.cmake'
[cmake] CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
[cmake] -- Configuring incomplete, errors occurred!
[cmake] See also "C:/mbedCE/mbed-ce-hello-world/build/CMakeFiles/CMakeOutput.log".
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DMBED_TARGET:STRING=NUCLEO_G474RE -DUPLOAD_METHOD:STRING=STM32CUBE -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Develop -Sc:/mbedCE/mbed-ce-hello-world -Bc:/mbedCE/mbed-ce-hello-world/build -G "MinGW Makefiles" exited with code: 1 and signal: null

I think there is a typo in Johannes’s answer. Try to use upper case ‘N’ when selecting ninja as generator:

-G Ninja

But where should I put it?
Sorry I´m starting with CMake, no experience at all.

Thank you.

when you use VSCode, then cmake is called by the cmake-tools extension, it will add the correct -G Ninja.

You could also try to call the cmake like in the output, but with -G Ninja at the end instead. For me it looks still like cmake or the extension does not find Ninja.

For VSC, pls check this setting:

Open the related Mbed Documentation and proceed to the “Build the project with CMake (advanced)” chapter. In step #3 you will find:

cmake -S . -B cmake_build/DISCO_L475VG_IOT01A/develop/GCC_ARM -GNinja

Note: The space char between -G and Ninja is optional.

Good point, nothing related to ninja. It looks like the system detects ninja but the extension not.

It seems it works, so ninja is solving issues, let see if I could set ninja in VScode.

Thank you very much

C:\mbedCE\mbed-ce-hello-world>cmake -S . -B ./build -GNinja -DMBED_TARGET:STRING=NUCLEO_G474RE
-- Mbed: First CMake run detected, generating configs...
mbed_config.cmake has been generated and written to 'C:\mbedCE\mbed-ce-hello-world\build\mbed_config.cmake'
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Mbed: Loading default upload method configuration from targets/upload_method_cfg/NUCLEO_G474RE.cmake
-- Mbed: Not building any Mbed OS tests.
-- Located STM32CubeIDE: C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE
-- Found STLINKTools: C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.301.202207041506/tools/bin/STM32_Programmer_CLI.exe
-- Board upload method set to STM32CUBE
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mbedCE/mbed-ce-hello-world/build

that looks fine, you see the -GNinja in the cmake call.

I’ve checked also, in the default the Cmake Generator option is empty. So we should add this information in the docs if missing.

Finally I have reinstalled Vscode and then I have been able to change the CMake Tools extension Cmake:Generator to Ninja and everything is working now (compile, flash and debug).
Thank you very much to all of you

1 Like

I do not know, but I have Cmake: Generator also empty and everything are working as expected. That is probably the reason why the docs says nothing about it. I have this setup on two workstations.

BR, Jan

Hello, just in case it may help others, I have solved it by clicking on the left extensions panel, in the gear icon in CMake Tools and then on Extension Settings, then in the Cmake:Generator entry I wrote Ninja and that is all.
Just to say that it works following the step by step setup guide in the wiki as long as to starting with the HelloWorld project. May be could be a good idea to note it in the Vscode setup guide.

Again thank you very much

1 Like

Just for clarification. Do you have also installed CMake desktop application please?

BR, Jan

As I mentioned I followed all the steps documented here Toolchain-Setup-Guide, nothing less nothing more, I could say I have been a documentation tester and I can say it is very good in spite of the detail of the Generator issue.