From cbd1a2f7dcc6ae4bd1b14b4ecec7d3fc579c8333 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 25 Feb 2020 14:52:03 -0500 Subject: [PATCH] cmake: Forgot to add this file to revision control. Fixes Bugzilla #5003. --- sdl2-config-version.cmake.in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sdl2-config-version.cmake.in diff --git a/sdl2-config-version.cmake.in b/sdl2-config-version.cmake.in new file mode 100644 index 000000000..c987bc1a0 --- /dev/null +++ b/sdl2-config-version.cmake.in @@ -0,0 +1,11 @@ +set(PACKAGE_VERSION "@SDL_VERSION@") + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() +endif() +