Getting errors when building the shared library vs 17 2022

PS C:\Users\user\Desktop\Weka\xgboost> cd build
PS C:\Users\user\Desktop\Weka\xgboost\build> cmake … -G"Visual Studio 17 2022" -A x64
– Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
– The CXX compiler identification is MSVC 19.35.32215.0
– The C compiler identification is MSVC 19.35.32215.0
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
– Detecting C compile features
– Detecting C compile features - done
– CMake version 3.26.0
– Performing Test XGBOOST_MM_PREFETCH_PRESENT
– Performing Test XGBOOST_MM_PREFETCH_PRESENT - Success
– Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT
– Performing Test XGBOOST_BUILTIN_PREFETCH_PRESENT - Failed
– xgboost VERSION: 2.0.0
– Performing Test CMAKE_HAVE_LIBC_PTHREAD
– Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - not found
– Found Threads: TRUE
– Found OpenMP_C: -openmp (found version “2.0”)
– Found OpenMP_CXX: -openmp (found version “2.0”)
– Found OpenMP: TRUE (found version “2.0”)
– Looking for clock_gettime in rt
– Looking for clock_gettime in rt - not found
– Looking for fopen64
– Looking for fopen64 - not found
– Looking for C++ include cxxabi.h
– Looking for C++ include cxxabi.h - not found
– Looking for nanosleep
– Looking for nanosleep - not found
– Looking for backtrace
– Looking for backtrace - not found
– Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
– C:/Users/user/Desktop/Weka/xgboost/dmlc-core/cmake/build_config.h.in -> include/dmlc/build_config.h
– Found PythonInterp: C:/Users/user/AppData/Local/Programs/PythonCodingPack/python.exe (found version “3.8.5”)
– Configuring done (111.8s)
– Generating done (2.1s)
– Build files have been written to: C:/Users/user/Desktop/Weka/xgboost/build
PS C:\Users\user\Desktop\Weka\xgboost\build> cmake --build . --config Release
Error: could not load cache