SDL_ttf: cmake: rename 'SDL3TTF_' prefix to 'SDLTTF_'

From abb49ab0dff764805e3dad042750509177ac1d72 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 16 Aug 2024 00:02:34 +0200
Subject: [PATCH] cmake: rename 'SDL3TTF_' prefix to 'SDLTTF_'

---
 .github/workflows/main.yml                    | 16 ++--
 CMakeLists.txt                                | 94 +++++++++----------
 .../pkg-support/cmake/sdl3_ttf-config.cmake   |  6 +-
 .../resources/CMake/sdl3_ttf-config.cmake     |  6 +-
 cmake/SDL3_ttfConfig.cmake.in                 | 14 +--
 5 files changed, 68 insertions(+), 68 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index b2e0fb6a..1b9b484f 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -15,12 +15,12 @@ jobs:
       fail-fast: false
       matrix:
         platform:
-        - { name: Windows (MSVC+CMake),         os: windows-latest, shell: sh,   cmake: '-DPerl_ROOT=C:/Strawberry/perl/bin/ -DSDL3TTF_VENDORED=ON -GNinja', msvc: 1, shared: 1, static: 0 }
+        - { name: Windows (MSVC+CMake),         os: windows-latest, shell: sh,   cmake: '-DPerl_ROOT=C:/Strawberry/perl/bin/ -DSDLTTF_VENDORED=ON -GNinja', msvc: 1, shared: 1, static: 0 }
         - { name: Windows (mingw64+CMake),      os: windows-latest, shell: 'msys2 {0}', msystem: mingw64, msys-env: mingw-w64-x86_64, shared: 1, static: 0,
-            cmake: '-DSDL3TTF_VENDORED=OFF -G "Ninja Multi-Config"' }
-        - { name: Linux,                        os: ubuntu-20.04,   shell: sh,   cmake: '-DSDL3TTF_VENDORED=ON -GNinja', shared: 1, static: 0 }
+            cmake: '-DSDLTTF_VENDORED=OFF -G "Ninja Multi-Config"' }
+        - { name: Linux,                        os: ubuntu-20.04,   shell: sh,   cmake: '-DSDLTTF_VENDORED=ON -GNinja', shared: 1, static: 0 }
         - { name: 'Linux (static)',             os: ubuntu-20.04,   shell: sh,   cmake: '-GNinja -DBUILD_SHARED_LIBS=OFF', shared: 0, static: 1 }
-        - { name: Macos,                        os: macos-latest,   shell: sh,   cmake: '-DSDL3TTF_VENDORED=ON -GNinja', shared: 1, static: 0 }
+        - { name: Macos,                        os: macos-latest,   shell: sh,   cmake: '-DSDLTTF_VENDORED=ON -GNinja', shared: 1, static: 0 }
 
     steps:
     - uses: ilammy/msvc-dev-cmd@v1
@@ -89,12 +89,12 @@ jobs:
       run: |
         cmake -B build-cmake \
           -DBUILD_SHARED_LIBS=ON \
-          -DSDL3TTF_HARFBUZZ=ON \
-          -DSDL3TTF_SAMPLES=ON \
-          -DSDL3TTF_WERROR=ON \
+          -DSDLTTF_HARFBUZZ=ON \
+          -DSDLTTF_SAMPLES=ON \
+          -DSDLTTF_WERROR=ON \
           -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
           -DCMAKE_BUILD_TYPE=Release \
-          -DSDL3TTF_INSTALL_MAN=ON \
+          -DSDLTTF_INSTALL_MAN=ON \
           -DCMAKE_INSTALL_PREFIX=prefix_cmake \
           ${{ matrix.platform.cmake }}
     - name: Build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1b7d9037..27e03f1e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,9 +25,9 @@ sdl_calculate_derived_version_variables(${MAJOR_VERSION} ${MINOR_VERSION} ${MICR
 message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
 
 if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
-    set(SDL3TTF_ROOTPROJECT ON)
+    set(SDLTTF_ROOTPROJECT ON)
 else()
-    set(SDL3TTF_ROOTPROJECT OFF)
+    set(SDLTTF_ROOTPROJECT OFF)
 endif()
 
 # Assume MSVC projects don't have a package manager and need vendored dependencies (by default).
@@ -58,27 +58,27 @@ endif()
 option(CMAKE_POSITION_INDEPENDENT_CODE "Build static libraries with -fPIC" ${PLATFORM_SUPPORTS_SHARED})
 cmake_dependent_option(BUILD_SHARED_LIBS "Build the library as a shared library" ON PLATFORM_SUPPORTS_SHARED OFF)
 
-cmake_dependent_option(SDL3TTF_INSTALL "Enable SDL3_ttf install target" ${SDL3TTF_ROOTPROJECT} "${sdl3ttf_install_enableable}" OFF)
-cmake_dependent_option(SDL3TTF_INSTALL_MAN "Install man pages for SDL3_ttf" OFF "SDL3TTF_INSTALL" OFF)
-option(SDL3TTF_VENDORED "Use vendored third-party libraries" ${vendored_default})
-option(SDL3TTF_WERROR "Treat warnings as errors" OFF)
+cmake_dependent_option(SDLTTF_INSTALL "Enable SDL3_ttf install target" ${SDLTTF_ROOTPROJECT} "${sdl3ttf_install_enableable}" OFF)
+cmake_dependent_option(SDLTTF_INSTALL_MAN "Install man pages for SDL3_ttf" OFF "SDLTTF_INSTALL" OFF)
+option(SDLTTF_VENDORED "Use vendored third-party libraries" ${vendored_default})
+option(SDLTTF_WERROR "Treat warnings as errors" OFF)
 
-option(SDL3TTF_SAMPLES "Build the SDL3_ttf sample program(s)" ${SDL3TTF_ROOTPROJECT})
-cmake_dependent_option(SDL3TTF_SAMPLES_INSTALL "Install the SDL3_ttf sample program(s)" OFF "SDL3TTF_SAMPLES;SDL3TTF_INSTALL" OFF)
+option(SDLTTF_SAMPLES "Build the SDL3_ttf sample program(s)" ${SDLTTF_ROOTPROJECT})
+cmake_dependent_option(SDLTTF_SAMPLES_INSTALL "Install the SDL3_ttf sample program(s)" OFF "SDLTTF_SAMPLES;SDLTTF_INSTALL" OFF)
 
-# For style consistency, create a SDL3TTF_FREETYPE CMake variable. This variable is NOT configurable.
-set(SDL3TTF_FREETYPE ON)
-set(SDL3TTF_FREETYPE_VENDORED "${SDL3TTF_VENDORED}")
+# For style consistency, create a SDLTTF_FREETYPE CMake variable. This variable is NOT configurable.
+set(SDLTTF_FREETYPE ON)
+set(SDLTTF_FREETYPE_VENDORED "${SDLTTF_VENDORED}")
 
-option(SDL3TTF_HARFBUZZ "Use harfbuzz to improve text shaping" OFF)
-set(SDL3TTF_HARFBUZZ_VENDORED "${SDL3TTF_VENDORED}")
+option(SDLTTF_HARFBUZZ "Use harfbuzz to improve text shaping" OFF)
+set(SDLTTF_HARFBUZZ_VENDORED "${SDLTTF_VENDORED}")
 
 # Save BUILD_SHARED_LIBS variable
-set(SDL3TTF_BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS}")
+set(SDLTTF_BUILD_SHARED_LIBS "${BUILD_SHARED_LIBS}")
 
 set(sdl_required_components Headers)
 
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     set(sdl3_ttf_target_name SDL3_ttf-shared)
     set(sdl3_target_name SDL3::SDL3-shared)
 
@@ -118,11 +118,11 @@ target_compile_definitions(${sdl3_ttf_target_name} PRIVATE
     SDL_BUILD_MICRO_VERSION=${MICRO_VERSION}
 )
 target_link_libraries(${sdl3_ttf_target_name} PUBLIC SDL3::Headers)
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     target_link_libraries(${sdl3_ttf_target_name} PRIVATE SDL3::SDL3-shared)
 endif()
-sdl_add_warning_options(${sdl3_ttf_target_name} WARNING_AS_ERROR ${SDL3TTF_WERROR})
-if(WIN32 AND SDL3TTF_BUILD_SHARED_LIBS)
+sdl_add_warning_options(${sdl3_ttf_target_name} WARNING_AS_ERROR ${SDLTTF_WERROR})
+if(WIN32 AND SDLTTF_BUILD_SHARED_LIBS)
     target_sources(${sdl3_ttf_target_name} PRIVATE
         src/version.rc
     )
@@ -146,7 +146,7 @@ if(NOT ANDROID)
         )
     endif()
 endif()
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     if(WIN32)
         set_target_properties(${sdl3_ttf_target_name} PROPERTIES
             PREFIX ""
@@ -160,19 +160,19 @@ else()
     endif()
 endif()
 
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     # Use `Compatible Interface Properties` to ensure a shared SDL3_ttf is linked to a shared SDL3 library
-    set_property(TARGET ${sdl3_ttf_target_name} PROPERTY INTERFACE_SDL3_SHARED ${SDL3TTF_BUILD_SHARED_LIBS})
+    set_property(TARGET ${sdl3_ttf_target_name} PROPERTY INTERFACE_SDL3_SHARED ${SDLTTF_BUILD_SHARED_LIBS})
     set_property(TARGET ${sdl3_ttf_target_name} APPEND PROPERTY COMPATIBLE_INTERFACE_BOOL SDL3_SHARED)
 endif()
 
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     sdl_target_link_options_no_undefined(${sdl3_ttf_target_name})
 endif()
 
 sdl_target_link_option_version_file(${sdl3_ttf_target_name} "${CMAKE_CURRENT_SOURCE_DIR}/src/SDL_ttf.sym")
 
-if(SDL3TTF_BUILD_SHARED_LIBS)
+if(SDLTTF_BUILD_SHARED_LIBS)
     # Make sure static library dependencies are built with -fPIC when building a shared SDL3_ttf
     set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 endif()
@@ -184,22 +184,22 @@ set(PC_REQUIRES)
 # Build freetype and harfbuzz as a static library
 set(BUILD_SHARED_LIBS OFF)
 
-if(SDL3TTF_HARFBUZZ)
-    if(SDL3TTF_HARFBUZZ_VENDORED)
+if(SDLTTF_HARFBUZZ)
+    if(SDLTTF_HARFBUZZ_VENDORED)
         message(STATUS "${PROJECT_NAME}: Using vendored harfbuzz library")
         # HB_BUILD_UTILS variable is used by harfbuzz
         set(HB_BUILD_UTILS OFF CACHE BOOL "harfbuzz build utils" FORCE)
         # SKIP_INSTALL_LIBRARIES variable is used by harfbuzz
         set(SKIP_INSTALL_LIBRARIES ON CACHE BOOL "harfbuzz install option" FORCE)
         # HB_HAVE_FREETYPE variable is used by harfbuzz
-        set(HB_HAVE_FREETYPE ${SDL3TTF_FREETYPE} CACHE BOOL "harfbuzz freetype helpers" FORCE)
+        set(HB_HAVE_FREETYPE ${SDLTTF_FREETYPE} CACHE BOOL "harfbuzz freetype helpers" FORCE)
         if(NOT EXISTS "${PROJECT_SOURCE_DIR}/external/harfbuzz/CMakeLists.txt")
             message(FATAL_ERROR "No harfbuzz sources found. Install a harfbuzz development package or run the download script in the external folder.")
         endif()
         add_subdirectory(external/harfbuzz EXCLUDE_FROM_ALL)
         # harfbuzz is a c++ project, enable c++ here to ensure linking to the c++ standard library
         enable_language(CXX)
-        if(NOT SDL3TTF_BUILD_SHARED_LIBS)
+        if(NOT SDLTTF_BUILD_SHARED_LIBS)
             list(APPEND INSTALL_EXTRA_TARGETS harfbuzz)
             list(APPEND PC_LIBS -l$<TARGET_FILE_BASE_NAME:harfbuzz>)
         endif()
@@ -215,8 +215,8 @@ if(SDL3TTF_HARFBUZZ)
     target_link_libraries(${sdl3_ttf_target_name} PRIVATE harfbuzz::harfbuzz)
 endif()
 
-if(SDL3TTF_FREETYPE)
-    if(SDL3TTF_FREETYPE_VENDORED)
+if(SDLTTF_FREETYPE)
+    if(SDLTTF_FREETYPE_VENDORED)
         message(STATUS "${PROJECT_NAME}: Using vendored freetype library")
         # FT_DISABLE_ZLIB variable is used by freetype
         set(FT_DISABLE_ZLIB ON CACHE BOOL "freetype zlib option")
@@ -226,7 +226,7 @@ if(SDL3TTF_FREETYPE)
         set(FT_DISABLE_PNG ON CACHE BOOL "freetype png option")
         # FT_DISABLE_BROTLI variable is used by freetype
         set(FT_DISABLE_BROTLI ON CACHE BOOL "freetype option")
-        if(SDL3TTF_HARFBUZZ)
+        if(SDLTTF_HARFBUZZ)
             # FT_DISABLE_HARFBUZZ variable is used by freetype
             set(FT_DISABLE_HARFBUZZ OFF CACHE BOOL "freetype harfbuzz option" FORCE)
             # FT_REQUIRE_HARFBUZZ variable is used by freetype
@@ -244,7 +244,7 @@ if(SDL3TTF_FREETYPE)
         if(NOT TARGET Freetype::Freetype)
             add_library(Freetype::Freetype ALIAS freetype)
         endif()
-        if(NOT SDL3TTF_BUILD_SHARED_LIBS)
+        if(NOT SDLTTF_BUILD_SHARED_LIBS)
             list(APPEND INSTALL_EXTRA_TARGETS freetype)
             list(APPEND PC_LIBS -l$<TARGET_FILE_BASE_NAME:freetype>)
         endif()
@@ -257,9 +257,9 @@ if(SDL3TTF_FREETYPE)
 endif()
 
 # Restore BUILD_SHARED_LIBS variable
-set(BUILD_SHARED_LIBS ${SDL3TTF_BUILD_SHARED_LIBS})
+set(BUILD_SHARED_LIBS ${SDLTTF_BUILD_SHARED_LIBS})
 
-if(SDL3TTF_INSTALL)
+if(SDLTTF_INSTALL)
     install(
         TARGETS ${sdl3_ttf_target_name}
         EXPORT SDL3_ttfTargets
@@ -283,23 +283,23 @@ if(SDL3TTF_INSTALL)
     endif()
 
     if(WIN32 AND NOT MINGW)
-        set(SDL3TTF_INSTALL_CMAKEDIR_DEFAULT "cmake")
+        set(SDLTTF_INSTALL_CMAKEDIR_DEFAULT "cmake")
     else()
-        set(SDL3TTF_INSTALL_CMAKEDIR_DEFAULT "${CMAKE_INSTALL_LIBDIR}/cmake")
+        set(SDLTTF_INSTALL_CMAKEDIR_DEFAULT "${CMAKE_INSTALL_LIBDIR}/cmake")
     endif()
-    set(SDL3TTF_INSTALL_CMAKEDIR_ROOT "${SDL3TTF_INSTALL_CMAKEDIR_DEFAULT}" CACHE STRING "Location where to install SDL3_ttfConfig.cmake")
+    set(SDLTTF_INSTALL_CMAKEDIR_ROOT "${SDLTTF_INSTALL_CMAKEDIR_DEFAULT}" CACHE STRING "Location where to install SDL3_ttfConfig.cmake")
     set(SDLTTF_PKGCONFIG_INSTALLDIR "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
 
     if(WIN32 AND NOT MINGW)
-        set(SDL3TTF_INSTALL_CMAKEDIR "${SDL3TTF_INSTALL_CMAKEDIR_ROOT}")
+        set(SDLTTF_INSTALL_CMAKEDIR "${SDLTTF_INSTALL_CMAKEDIR_ROOT}")
         set(LICENSES_PREFIX "licenses/SDL3_ttf")
     else()
-        set(SDL3TTF_INSTALL_CMAKEDIR "${SDL3TTF_INSTALL_CMAKEDIR_ROOT}/SDL3_ttf")
+        set(SDLTTF_INSTALL_CMAKEDIR "${SDLTTF_INSTALL_CMAKEDIR_ROOT}/SDL3_ttf")
         set(LICENSES_PREFIX "${CMAKE_INSTALL_DATAROOTDIR}/licenses/SDL3_ttf")
     endif()
 
     configure_package_config_file(cmake/SDL3_ttfConfig.cmake.in SDL3_ttfConfig.cmake
-        INSTALL_DESTINATION "${SDL3TTF_INSTALL_CMAKEDIR}"
+        INSTALL_DESTINATION "${SDLTTF_INSTALL_CMAKEDIR}"
     )
     write_basic_package_version_file("${PROJECT_BINARY_DIR}/SDL3_ttfConfigVersion.cmake"
         COMPATIBILITY AnyNewerVersion
@@ -308,13 +308,13 @@ if(SDL3TTF_INSTALL)
         FILES
             "${CMAKE_CURRENT_BINARY_DIR}/SDL3_ttfConfig.cmake"
             "${CMAKE_CURRENT_BINARY_DIR}/SDL3_ttfConfigVersion.cmake"
-        DESTINATION ${SDL3TTF_INSTALL_CMAKEDIR}
+        DESTINATION ${SDLTTF_INSTALL_CMAKEDIR}
         COMPONENT devel
     )
     install(EXPORT SDL3_ttfTargets
         FILE ${sdl3_ttf_target_name}-targets.cmake
         NAMESPACE SDL3_ttf::
-        DESTINATION "${SDL3TTF_INSTALL_CMAKEDIR}"
+        DESTINATION "${SDLTTF_INSTALL_CMAKEDIR}"
         COMPONENT devel
     )
 
@@ -335,18 +335,18 @@ if(SDL3TTF_INSTALL)
         COMPONENT library
     )
 
-    if(SDL3TTF_INSTALL_MAN)
-        sdl_get_git_revision_hash(SDL3TTF_REVISION)
+    if(SDLTTF_INSTALL_MAN)
+        sdl_get_git_revision_hash(SDLTTF_REVISION)
         SDL_generate_manpages(
             HEADERS_DIR "${PROJECT_SOURCE_DIR}/include/SDL3_ttf"
             SYMBOL "TTF_Init"
             WIKIHEADERS_PL_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build-scripts/wikiheaders.pl"
-            REVISION "${SDL3TTF_REVISION}"
+            REVISION "${SDLTTF_REVISION}"
         )
     endif()
 endif()
 
-if(SDL3TTF_SAMPLES)
+if(SDLTTF_SAMPLES)
     add_executable(glfont examples/glfont.c)
     add_executable(showfont examples/showfont.c)
     add_executable(testapp examples/testapp.c)
@@ -362,11 +362,11 @@ if(SDL3TTF_SAMPLES)
     endif()
 
     foreach(prog glfont showfont testapp)
-        sdl_add_warning_options(${prog} WARNING_AS_ERROR ${SDL3TTF_WERROR})
+        sdl_add_warning_options(${prog} WARNING_AS_ERROR ${SDLTTF_WERROR})
         target_link_libraries(${prog} PRIVATE SDL3_ttf::${sdl3_ttf_target_name})
         target_link_libraries(${prog} PRIVATE ${sdl3_target_name})
 
-        if(SDL3TTF_SAMPLES_INSTALL)
+        if(SDLTTF_SAMPLES_INSTALL)
             install(TARGETS ${prog}
                 RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
             )
diff --git a/VisualC/pkg-support/cmake/sdl3_ttf-config.cmake b/VisualC/pkg-support/cmake/sdl3_ttf-config.cmake
index 10063054..4642994b 100644
--- a/VisualC/pkg-support/cmake/sdl3_ttf-config.cmake
+++ b/VisualC/pkg-support/cmake/sdl3_ttf-config.cmake
@@ -11,10 +11,10 @@ cmake_minimum_required(VERSION 3.0)
 
 set(SDL3_ttf_FOUND TRUE)
 
-set(SDL3TTF_VENDORED TRUE)
+set(SDLTTF_VENDORED TRUE)
 
-set(SDL3TTF_HARFBUZZ TRUE)
-set(SDL3TTF_FREETYPE TRUE)
+set(SDLTTF_HARFBUZZ TRUE)
+set(SDLTTF_FREETYPE TRUE)
 
 if(CMAKE_SIZEOF_VOID_P STREQUAL "4")
     set(_sdl_arch_subdir "x86")
diff --git a/Xcode/pkg-support/resources/CMake/sdl3_ttf-config.cmake b/Xcode/pkg-support/resources/CMake/sdl3_ttf-config.cmake
index a52b1d88..87f2ef96 100644
--- a/Xcode/pkg-support/resources/CMake/sdl3_ttf-config.cmake
+++ b/Xcode/pkg-support/resources/CMake/sdl3_ttf-config.cmake
@@ -12,10 +12,10 @@ set_package_properties(SDL3_ttf PROPERTIES
 
 set(SDL3_ttf_FOUND TRUE)
 
-set(SDL3TTF_VENDORED TRUE)
+set(SDLTTF_VENDORED TRUE)
 
-set(SDL3TTF_HARFBUZZ TRUE)
-set(SDL3TTF_FREETYPE TRUE)
+set(SDLTTF_HARFBUZZ TRUE)
+set(SDLTTF_FREETYPE TRUE)
 
 string(REGEX REPLACE "SDL3_ttf\\.framework.*" "SDL3_ttf.framework" _sdl3ttf_framework_path "${CMAKE_CURRENT_LIST_DIR}")
 string(REGEX REPLACE "SDL3_ttf\\.framework.*" "" _sdl3ttf_framework_parent_path "${CMAKE_CURRENT_LIST_DIR}")
diff --git a/cmake/SDL3_ttfConfig.cmake.in b/cmake/SDL3_ttfConfig.cmake.in
index 4680645b..eeb0859a 100644
--- a/cmake/SDL3_ttfConfig.cmake.in
+++ b/cmake/SDL3_ttfConfig.cmake.in
@@ -8,19 +8,19 @@ set_package_properties(SDL3_ttf PROPERTIES
 
 set(SDL3_ttf_FOUND ON)
 
-set(SDL3TTF_VENDORED  @SDL3TTF_VENDORED@)
+set(SDLTTF_VENDORED  @SDLTTF_VENDORED@)
 
-set(SDL3TTF_HARFBUZZ @SDL3TTF_HARFBUZZ@)
-set(SDL3TTF_FREETYPE @SDL3TTF_FREETYPE@)
+set(SDLTTF_HARFBUZZ @SDLTTF_HARFBUZZ@)
+set(SDLTTF_FREETYPE @SDLTTF_FREETYPE@)
 
-set(SDL3TTF_SDL3_REQUIRED_VERSION  @SDL_REQUIRED_VERSION@)
+set(SDLTTF_SDL3_REQUIRED_VERSION  @SDL_REQUIRED_VERSION@)
 
 if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3_ttf-shared-targets.cmake")
     include("${CMAKE_CURRENT_LIST_DIR}/SDL3_ttf-shared-targets.cmake")
 endif()
 
 if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3_ttf-static-targets.cmake")
-    if(SDL3TTF_VENDORED)
+    if(SDLTTF_VENDORED)
         include(CheckLanguage)
         check_language(CXX)
         if(NOT CMAKE_CXX_COMPILER AND NOT _sdl3ttf_nowarning)
@@ -32,11 +32,11 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/SDL3_ttf-static-targets.cmake")
         set(_sdl_cmake_module_path "${CMAKE_MODULE_PATH}")
         list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
 
-        if(SDL3TTF_FREETYPE)
+        if(SDLTTF_FREETYPE)
             find_dependency(Freetype)
         endif()
 
-        if(SDL3TTF_HARFBUZZ)
+        if(SDLTTF_HARFBUZZ)
             list(APPEND harfbuzz_ROOT "${CMAKE_CURRENT_LIST_DIR}")
             find_dependency(harfbuzz)
         endif()