From 283f69d4d13a1d776a137236444ee8c49c38ee96 Mon Sep 17 00:00:00 2001
From: Pino Toscano <[EMAIL REDACTED]>
Date: Sat, 23 May 2026 05:44:12 +0200
Subject: [PATCH] CMake: include CMakeDependentOption for
cmake_dependent_option()
Include CMakeDependentOption to make sure the custom dep_option() macro
works on its own, without relying on what done by the embedded SDL_net
buildsystem.
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1eabd08..776a89c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,7 @@ if (USE_VENDORED_SDL)
add_subdirectory(external/SDL EXCLUDE_FROM_ALL)
else()
find_package(SDL3 ${SDL_REQUIRED_VERSION} REQUIRED COMPONENTS Headers SDL3-shared)
+ include(CMakeDependentOption)
macro(dep_option _NAME _DESC _DEFLT _DEPTEST _FAILDFLT)
cmake_dependent_option("${_NAME}" "${_DESC}" "${_DEFLT}" "${_DEPTEST}" "${_FAILDFLT}")
endmacro()