CMakeLists.txt
changeset 8203 5c9ac454116e
parent 8197 7e9a477d3e07
child 8248 427d0a6f5af7
     1.1 --- a/CMakeLists.txt	Mon Feb 10 11:29:48 2014 -0500
     1.2 +++ b/CMakeLists.txt	Mon Feb 10 10:53:02 2014 -0500
     1.3 @@ -37,9 +37,12 @@
     1.4  # Calculate a libtool-like version number
     1.5  math(EXPR LT_CURRENT "${SDL_MICRO_VERSION} - ${SDL_INTERFACE_AGE}")
     1.6  math(EXPR LT_AGE "${SDL_BINARY_AGE} - ${SDL_INTERFACE_AGE}")
     1.7 +math(EXPR LT_MAJOR "${LT_CURRENT}- ${LT_AGE}")
     1.8  set(LT_REVISION "${SDL_INTERFACE_AGE}")
     1.9  set(LT_RELEASE "${SDL_MAJOR_VERSION}.${SDL_MINOR_VERSION}")
    1.10 -set(LT_VERSION "${LT_CURRENT}.${LT_REVISION}.${LT_AGE}")
    1.11 +set(LT_VERSION "${LT_MAJOR}.${LT_AGE}.${LT_REVISION}")
    1.12 +
    1.13 +message(STATUS "${LT_VERSION} :: ${LT_AGE} :: ${LT_REVISION} :: ${LT_CURRENT} :: ${LT_RELEASE}")
    1.14  
    1.15  # General settings & flags
    1.16  set(LIBRARY_OUTPUT_DIRECTORY "build")
    1.17 @@ -1236,12 +1239,12 @@
    1.18    if(UNIX)
    1.19      set_target_properties(SDL2 PROPERTIES
    1.20        VERSION ${LT_VERSION}
    1.21 -      SOVERSION ${LT_CURRENT}
    1.22 +      SOVERSION ${LT_REVISION}
    1.23        OUTPUT_NAME "SDL2-${LT_RELEASE}")
    1.24    else(UNIX)
    1.25      set_target_properties(SDL2 PROPERTIES
    1.26        VERSION ${SDL_VERSION}
    1.27 -      SOVERSION ${LT_CURRENT}
    1.28 +      SOVERSION ${LT_REVISION}
    1.29        OUTPUT_NAME "SDL2")
    1.30    endif()
    1.31   set(_INSTALL_LIBS "SDL2" ${_INSTALL_LIBS})