Cannot build MAVSdk examples

I can build MAVSDK using cmake and Visual studio 2022 but I cannot get the examples to build.

The cmake error is shown below

CMake Warning (dev) at D:/Tools/ProtocolTranslator3/SupportLibraries/SDL/VisualC/pkg-support/cmake/sdl2-config-version.cmake:7 (message):
Could not find SDL_version.h. This script is meant to be placed in the
root of SDL2-devel-2.x.y-VC
Call Stack (most recent call first):
manual_control/CMakeLists.txt:14 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Deprecation Warning at D:/Tools/ProtocolTranslator3/SupportLibraries/SDL/VisualC/pkg-support/cmake/sdl2-config.cmake:4 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.
Call Stack (most recent call first):
manual_control/CMakeLists.txt:14 (find_package)

CMake Error at D:/Tools/ProtocolTranslator3/SupportLibraries/SDL/VisualC/pkg-support/cmake/sdl2-config.cmake:16 (message):
File or directory
referenced by variable SDL2_INCLUDE_DIR does not exist !
Call Stack (most recent call first):
D:/Tools/ProtocolTranslator3/SupportLibraries/SDL/VisualC/pkg-support/cmake/sdl2-config.cmake:46 (set_and_check)
manual_control/CMakeLists.txt:14 (find_package)

Configuring incomplete, errors occurred