Fixed setting the version info in the shared library when using CMake
authorSam Lantinga <slouken@libsdl.org>
Mon, 03 Oct 2016 03:42:10 -0700
changeset 10458b24c67bbb02f
parent 10457 19ac0ca04c8b
child 10459 d19f7d2b6ec8
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
     1.1 --- a/CMakeLists.txt	Sun Oct 02 22:32:50 2016 +0200
     1.2 +++ b/CMakeLists.txt	Mon Oct 03 03:42:10 2016 -0700
     1.3 @@ -1535,7 +1535,7 @@
     1.4  set(_INSTALL_LIBS "SDL2main")
     1.5  
     1.6  if(SDL_SHARED)
     1.7 -  add_library(SDL2 SHARED ${SOURCE_FILES})
     1.8 +  add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
     1.9    if(UNIX)
    1.10      set_target_properties(SDL2 PROPERTIES
    1.11        VERSION ${LT_VERSION}