SDL: cmake: Use CMAKE_INSTALL_FULL_* for libdir,bindir,etc.

From c30845395257933685c4e348d34ec029121bd181 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 3 Aug 2021 02:49:08 -0400
Subject: [PATCH] cmake: Use CMAKE_INSTALL_FULL_* for libdir,bindir,etc.

This makes sure sdl2.pc gets the full paths, matching what the
configure script will generate.

Fixes #4569.
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b56a47297..c311b6f14 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2348,9 +2348,9 @@ if(NOT WINDOWS OR CYGWIN OR MINGW)
   set(prefix ${CMAKE_INSTALL_PREFIX})
 
   set(exec_prefix "\${prefix}")
-  set(libdir "${CMAKE_INSTALL_LIBDIR}")
-  set(bindir "${CMAKE_INSTALL_BINDIR}")
-  set(includedir "${CMAKE_INSTALL_INCLUDEDIR}")
+  set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
+  set(bindir "${CMAKE_INSTALL_FULL_BINDIR}")
+  set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
   if(SDL_STATIC)
     set(ENABLE_STATIC_TRUE "")
     set(ENABLE_STATIC_FALSE "#")