SDL_ttf: cmake: disable documentation installation by default

From cba7e6043fd9d71e352792a3764c0b73d81c0636 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 2 May 2024 19:58:42 +0200
Subject: [PATCH] cmake: disable documentation installation by default

---
 .github/workflows/main.yml | 1 +
 CMakeLists.txt             | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a6b24c21..b2e0fb6a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -94,6 +94,7 @@ jobs:
           -DSDL3TTF_WERROR=ON \
           -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
           -DCMAKE_BUILD_TYPE=Release \
+          -DSDL3TTF_INSTALL_MAN=ON \
           -DCMAKE_INSTALL_PREFIX=prefix_cmake \
           ${{ matrix.platform.cmake }}
     - name: Build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1119339a..1b7d9037 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -59,7 +59,7 @@ option(CMAKE_POSITION_INDEPENDENT_CODE "Build static libraries with -fPIC" ${PLA
 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" ${SDL3TTF_ROOTPROJECT} "SDL3TTF_INSTALL" 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)