diff --git a/CMakeLists.txt b/CMakeLists.txt index b05356b71..9038abfc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1535,7 +1535,7 @@ add_library(SDL2main STATIC ${SDLMAIN_SOURCES}) set(_INSTALL_LIBS "SDL2main") if(SDL_SHARED) - add_library(SDL2 SHARED ${SOURCE_FILES}) + add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES}) if(UNIX) set_target_properties(SDL2 PROPERTIES VERSION ${LT_VERSION}