Another project I follow is Flare (short for Free/Libre Action Roleplaying Engine). It's pretty cool and people should check it out. Anyways, the reason I mention it, is because it's written in C++, use CMake for building and have ported from SDL to SDL2. Looking at their CMakeLists.txt at https://github.com/clintbellanger/flare-engine it doesn't seem that complicated, and they even have a fallback to SDL for platforms where SDL2 isn't available for various reasons. Might be worth to take a look at, since it use much of the same stack.
(I should mention I didn't follow the porting work in detail, but I can't remember hearing of any major problems along the way. Or problems with the fallback to older SDL libraries)
(Might be revelant, might not be.)
Another project I follow is Flare (short for Free/Libre Action Roleplaying Engine). It's pretty cool and people should check it out. Anyways, the reason I mention it, is because it's written in C++, use CMake for building and have ported from SDL to SDL2. Looking at their CMakeLists.txt at https:/ /github. com/clintbellan ger/flare- engine it doesn't seem that complicated, and they even have a fallback to SDL for platforms where SDL2 isn't available for various reasons. Might be worth to take a look at, since it use much of the same stack.
(I should mention I didn't follow the porting work in detail, but I can't remember hearing of any major problems along the way. Or problems with the fallback to older SDL libraries)