When SDL2_main would not be found, it would incorrectly flag the shared SDL2 library as not found.
(cherry picked from commit 378234437f)
When SDL2_main would not be found, it would incorrectly flag the shared SDL2 library as not found.
(cherry picked from commit 378234437f)