Can't cmake on remote Debian from windows VSC

What do you want to achieve?

compile on a remote debian machine from VS Code

What have you tried so far?

cmake …

Screenshot or video

Others

  • SquareLine Studio version: latest
  • Operating system: windows/debian
  • Target hardware: debian on x86-32/64

I get this when I try to make the template project that is exported:

CMake Error at CMakeLists.txt:10 (find_package):
By not providing “FindSDL2.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “SDL2”, but
CMake did not find one.

Could not find a package configuration file provided by “SDL2” with any of
the following names:

SDL2Config.cmake
sdl2-config.cmake

Add the installation prefix of “SDL2” to CMAKE_PREFIX_PATH or set
“SDL2_DIR” to a directory containing one of the above files. If “SDL2”
provides a separate development package or SDK, be sure it has been
installed.

If you essentially run VScode itself on Debian (even if remote), and libsdl2-dev and cmake packages are installed by apt/synaptic, the sdl2-config.cmake should be found by CMake.
I use Debian 12 myself with libsdl2-dev installed, just tried a build with VScode version 1.89.1, SquareLine Studio export with VScode board-template 1.0.3, and when asked for compiler in VScode I chose ‘Unspecified - Let CMake decide…’, there was no problem with building and running.
Btw sdl2-config can be found in /usr/bin and your ‘missing’ sdl2-config.cmake is in /usr/lib/x86_64-linux-gnu/cmake/SDL2 folder on 64bit-system if everything is set up fine.