cmake: Add PACKAGE_VERSION and SDL2_VERSION to sdl2-config.cmake.in

Fixes Bugzilla #4970.
This commit is contained in:
Ryan C. Gordon
2020-02-14 13:37:32 -05:00
parent d1df34370e
commit 229c2f8f5f
2 changed files with 15 additions and 1 deletions

View File

@@ -3,6 +3,8 @@
set(prefix "@prefix@")
set(exec_prefix "@exec_prefix@")
set(libdir "@libdir@")
set(PACKAGE_VERSION "@SDL_VERSION@")
set(SDL2_VERSION "@SDL_VERSION@")
set(SDL2_PREFIX "@prefix@")
set(SDL2_EXEC_PREFIX "@prefix@")
set(SDL2_LIBDIR "@libdir@")