sdl2-config-version.cmake.in
author David Ludwig <dludwig@pobox.com>
Mon, 16 Mar 2020 00:21:22 -0400
changeset 13632 49320151ca4d
parent 13553 78754c9488f6
permissions -rw-r--r--
virtual joysticks: add autotools-build support (Bug 5028)

Autotools support for virtual-joysticks turns it OFF by default. To turn it
on, pass the following into configure: --enable-joystick-virtual
icculus@13553
     1
set(PACKAGE_VERSION "@SDL_VERSION@")
icculus@13553
     2
icculus@13553
     3
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
icculus@13553
     4
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
icculus@13553
     5
else()
icculus@13553
     6
  set(PACKAGE_VERSION_COMPATIBLE TRUE)
icculus@13553
     7
  if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
icculus@13553
     8
    set(PACKAGE_VERSION_EXACT TRUE)
icculus@13553
     9
  endif()
icculus@13553
    10
endif()
icculus@13553
    11