Thu, 12 Oct 2017 14:21:21 -0700Android doesn't have libunwind.h in API 16
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 14:21:21 -0700] rev 11614
Android doesn't have libunwind.h in API 16

Thu, 12 Oct 2017 14:20:17 -0700Added missing file
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 14:20:17 -0700] rev 11613
Added missing file

Thu, 12 Oct 2017 14:02:24 -0700Fixed compiler warning
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 14:02:24 -0700] rev 11612
Fixed compiler warning

Thu, 12 Oct 2017 13:55:35 -0700Fixed compiler warning
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 13:55:35 -0700] rev 11611
Fixed compiler warning

Thu, 12 Oct 2017 13:44:28 -0700Added functions to query and set the SDL memory allocation functions:
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 13:44:28 -0700] rev 11610
Added functions to query and set the SDL memory allocation functions:
SDL_GetMemoryFunctions()
SDL_SetMemoryFunctions()
SDL_GetNumAllocations()

Thu, 12 Oct 2017 23:11:02 +0200atari:gem: Clip zones to redraw against screen SDL-1.2
Patrice Mandin <patmandin@gmail.com> [Thu, 12 Oct 2017 23:11:02 +0200] rev 11609
atari:gem: Clip zones to redraw against screen

Thu, 12 Oct 2017 22:49:00 +0200atari:gem: Simplify palette changes by removing most temp variables SDL-1.2
Patrice Mandin <patmandin@gmail.com> [Thu, 12 Oct 2017 22:49:00 +0200] rev 11608
atari:gem: Simplify palette changes by removing most temp variables

Thu, 12 Oct 2017 13:28:48 -0700Fixed memory leak in Cocoa mouse code
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 13:28:48 -0700] rev 11607
Fixed memory leak in Cocoa mouse code
The video quit call cleans up the mouse cursor driver data, which happens after mouse quit

Thu, 12 Oct 2017 08:47:02 -0700Fixed bug 3866 - CMake error when trying to make the 'uninstall' target when it already exists
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 08:47:02 -0700] rev 11606
Fixed bug 3866 - CMake error when trying to make the 'uninstall' target when it already exists

Steve Robinson

In my project, the 'uninstall' target is already created by the glew library. I get this error when SDL2 tries to create it:

CMake Error at _build/3rdparty/SDL2/SDL2-2.0.6/CMakeLists.txt:1816 (add_custom_target):
add_custom_target cannot create target "uninstall" because another target
with the same name already exists. The existing target is a custom target
created in source directory
"D:/Code/sdl2-tutorial/_build/3rdparty/glew/glew-2.1.0/build/cmake". See
documentation for policy CMP0002 for more details.

To fix it, go to the bottom of the SDL2 CMakeLists.txt file. Add an if statement to check for the existence of the target before creating it. The end result looks like this:

if(NOT TARGET uninstall)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)

add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
endif()

This is how the glew library deals with this possibility in their CMakeLists.txt file.

Thu, 12 Oct 2017 08:44:45 -0700Fixed bug 3867 - Can't find install_manifest.txt when running 'uninstall' target
Sam Lantinga <slouken@libsdl.org> [Thu, 12 Oct 2017 08:44:45 -0700] rev 11605
Fixed bug 3867 - Can't find install_manifest.txt when running 'uninstall' target

Steve Robinson

When I try to build the 'uninstall' target in CMake when SDL2 is added to a subdirectory of my project, I get this error:

1>CMake Error at cmake_uninstall.cmake:2 (message):
1> Cannot find install manifest:
1> "D:/Code/sdl2-tutorial/_build/3rdparty/SDL2/SDL2-2.0.6/install_manifest.txt"

The install_manifest.txt is actually in the top-level binary directory, not the project-specific binary directory.

To fix it, change all instances of:
CMAKE_CURRENT_BINARY_DIR

To:
CMAKE_BINARY_DIR

In:
cmake_uninstall.cmake.in