Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[cmake] Fix httplib build with OpenSSL enabled but web service disabled (#3395)

crueter4624b16cc616
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 185be585d3..6851016a07 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -215,7 +215,7 @@ if (VulkanMemoryAllocator_ADDED)
endif()
# httplib
-if (ENABLE_WEB_SERVICE OR ENABLE_UPDATE_CHECKER)
+if (ENABLE_WEB_SERVICE OR ENABLE_UPDATE_CHECKER OR USE_DISCORD_PRESENCE OR ENABLE_OPENSSL)
AddJsonPackage(httplib)
endif()