cmake 3.29.0-rc3 getting error-Selecting Windows SDK version...

Hi, what changes do I need in to do

computer windows 11 home x64
vs community 2022
orbbecsdk 1.9.4
cmake 3.29.0-rc3

cmake window shows
current generator:visual studio 17 2022
in red
make_configuation_types Debug;Release;MinSizeRel;RelWithDebInfo

—error—
Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
CMake Error at CMakeLists.txt:3 (project):
Failed to run MSBuild command:

cmakelists.txt top 3 lines (orbbec examples directory)

cmake_minimum_required(VERSION 3.29)

project(OrbbecSDK-Samples LANGUAGES CXX C)

You’re probably missing an SDK component in the Visual Studio installer. Or build tools.

Maybe I also encountered the same problem
❯ cmake --version
cmake version 3.29.2
windows 11

– Building for: Visual Studio 17 2022
– Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.

– Configuring incomplete, errors occurred!

What’s the output of cl command? Should print MSVC version and usage example (if it is available in your PATH).
Also, have you tried running CMake from VS prompt (/path/to/vs/Common7/Tools/VsDevCmd.bat)?


** Visual Studio 2022 Developer Command Prompt v17.9.6
** Copyright (c) 2022 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: ‘x64’

K:\IDE\vs2022>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option… ] filename… [ /link linkoption… ]

K:\IDE\vs2022>pushd C:\Users\yecat\source\repos\CMakeProject1

C:\Users\yecat\source\repos\CMakeProject1>mkdir build

C:\Users\yecat\source\repos\CMakeProject1>cd build

C:\Users\yecat\source\repos\CMakeProject1\build>cmake …
– Building for: Visual Studio 17 2022
– Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
– The C compiler identification is unknown
– The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:12 (project):
No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:12 (project):
No CMAKE_CXX_COMPILER could be found.

– Configuring incomplete, errors occurred!

C:\Users\yecat\source\repos\CMakeProject1\build>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option… ] filename… [ /link linkoption… ]

C:\Users\yecat\source\repos\CMakeProject1\build>