SDL_net: cmake: disable documentation installation by default

From 78dc78694f17317b08ec788d4812e74850b4acff Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 2 May 2024 19:59:20 +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 91b3085..49782d1 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -61,6 +61,7 @@ jobs:
             -DCMAKE_BUILD_TYPE=Release \
             -DCMAKE_INSTALL_PREFIX=prefix \
             -DSDL3NET_WERROR=ON \
+            -DSDL3NET_INSTALL_MAN=ON \
             -DCMAKE_INSTALL_PREFIX=prefix \
             ${{ matrix.platform.cmake }}
 
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b14daec..e6bba31 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,7 +58,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(SDL3NET_INSTALL "Enable SDL3_net install target" ${SDL3NET_ROOTPROJECT} "${sdl3net_install_enableable}" OFF)
-cmake_dependent_option(SDL3NET_INSTALL_MAN "Install man pages for SDL3_net" ${SDL3NET_ROOTPROJECT} "SDL3NET_INSTALL" OFF)
+cmake_dependent_option(SDL3NET_INSTALL_MAN "Install man pages for SDL3_net" OFF "SDL3NET_INSTALL" OFF)
 option(SDL3NET_WERROR "Treat warnings as errors" OFF)
 
 option(SDL3NET_SAMPLES "Build the SDL3_net sample program(s)" ${SDL3NET_SAMPLES_DEFAULT})