When using MSVC with VCPKG, unfortunately the IDE is not able to find files likem SDL.h in any way.
The only way to make it working is to use:
instead of:
Hopefully, the code allows to automate this selection by using USE_SDL_PREFIX.
This macro is left always undefined when using configure script and SDL2 is used.
So, I added with a simple patch the chance to allow the selection of the 2 different types of inclusion also for SDL2. As result, in my config.h for MSVC, I added the definition of USE_SDL_PREFIX and this has fixed the build of SDL2 ui.
cant this be solved by adding the respective include path in the msvc project?
Yes, I think that it can be also done like this, if you accept to manually add the path into the properties of the project.
i had a closer look now - apparently we already use USE_SDL_PREFIX in configure, so we can just as well also recognize it for SDL2
applied in r45883