SDL_ttf: Fix CMake CI

From c06b52086a870aa0e31cb7dbfa1bb6db90223a48 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 12 May 2022 04:14:12 +0200
Subject: [PATCH] Fix CMake CI

---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8057085..a59f7d3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -264,9 +264,9 @@ if (NOT TTF_DISABLE_INSTALL)
 
     if (CMAKE_SYSTEM_NAME MATCHES FreeBSD)
         # FreeBSD uses ${PREFIX}/libdata/pkgconfig
-        install(FILES ${SDL_ttf_BINARY_DIR}/SDL2_ttf.pc DESTINATION "libdata/pkgconfig")
+        install(FILES ${CMAKE_CURRENT_BINARY_DIR}/SDL2_ttf.pc DESTINATION "libdata/pkgconfig")
     else ()
-        install(FILES ${SDL_ttf_BINARY_DIR}/SDL2_ttf.pc
+        install(FILES ${CMAKE_CURRENT_BINARY_DIR}/SDL2_ttf.pc
             DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
     endif ()
     install(FILES "COPYING.txt" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/licenses/${PROJECT_NAME}")