From 34eebfba9b02a1bf566bbf3de67cb0af8b7d333e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 3 Oct 2016 03:42:10 -0700 Subject: [PATCH] Fixed setting the version info in the shared library when using CMake Ray Molenkamp When building sdl as shared lib, the version info is lacking in the final binary. CMake gathers the right resource files into ${VERSION_SOURCES} but then doesn't do anything with them. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}