sdl2-config-version.cmake.in
author Jay Petacat <jay@jayschwa.net>
Sun, 22 Mar 2020 20:09:14 -0400
changeset 13667 daed33b4f74a
parent 13553 78754c9488f6
permissions -rw-r--r--
Do not overwrite window surface created by driver

If a driver's implementation of CreateWindowFramebuffer sets the window
surface, use that rather than overwriting it. A driver may set the window
surface if data cannot be passed via the CreateWindowFramebuffer output
parameters (e.g. surface palette colors).
     1 set(PACKAGE_VERSION "@SDL_VERSION@")
     2 
     3 if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
     4   set(PACKAGE_VERSION_COMPATIBLE FALSE)
     5 else()
     6   set(PACKAGE_VERSION_COMPATIBLE TRUE)
     7   if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
     8     set(PACKAGE_VERSION_EXACT TRUE)
     9   endif()
    10 endif()
    11