aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-10-05 14:28:51 +1000
committerfuzzard <fuzzard@kodi.tv>2023-10-05 19:26:41 +1000
commit829f0f3151a9f9e6448f6472d99280cd099f7a0e (patch)
treeda97a1cf8cf0436f2bad6591bbb888fb1a655ddb /CMakeLists.txt
parent0f28947095977a2bc1407d7498032a4099768242 (diff)
[cmake] Refactor and simplify FindFmt.cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5b9da0d96..a821c6df6b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -83,8 +83,17 @@ dependent_option(ENABLE_INTERNAL_FMT "Enable internal fmt?")
dependent_option(ENABLE_INTERNAL_NFS "Enable internal libnfs?")
dependent_option(ENABLE_INTERNAL_PCRE "Enable internal pcre?")
dependent_option(ENABLE_INTERNAL_RapidJSON "Enable internal rapidjson?")
-dependent_option(ENABLE_INTERNAL_SPDLOG "Enable internal spdlog?")
+
+# If ENABLE_INTERNAL_FMT is ON, we force ENABLE_INTERNAL_SPDLOG ON as it has a hard
+# dependency on fmt
+if(ENABLE_INTERNAL_FMT)
+ option(ENABLE_INTERNAL_SPDLOG "Enable internal spdlog Forced" ON)
+else()
+ dependent_option(ENABLE_INTERNAL_SPDLOG "Enable internal spdlog?")
+endif()
+
dependent_option(ENABLE_INTERNAL_TAGLIB "Enable internal taglib?")
+
if(KODI_DEPENDSBUILD OR WIN32 OR WINDOWS_STORE)
dependent_option(ENABLE_INTERNAL_TINYXML2 "Enable internal TinyXML2?")
endif()