Conan.io package for SDL2 library
Binary packages for SDL2 are not generating because of the dependency of sdl2 to local GL/drivers. So just use --build option in conan install to compile the SDL2 (very quick).
$ conan install SDL2/2.0.4@lasote/stable --build
If you handle multiple dependencies in your project is better to add a conanfile.txt
[requires]
SDL2/2.0.4@lasote/stable
[options]
SDL2:shared=true # false
[generators]
txt
cmake
Complete the installation of requirements for your project running:
conan install --build missing