From 8b04ab53ebfbc17ab98d82016823f520bce6e7b9 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 29 Jan 2024 09:38:15 +0100 Subject: [PATCH] [cmake] disable WITH_WEBVIEW if not build on linux/bsd --- client/SDL/aad/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/SDL/aad/CMakeLists.txt b/client/SDL/aad/CMakeLists.txt index 3b553201d..228654262 100644 --- a/client/SDL/aad/CMakeLists.txt +++ b/client/SDL/aad/CMakeLists.txt @@ -1,4 +1,9 @@ -option(WITH_WEBVIEW "Build with WebView support for AAD login popup browser" ON) +set(WITH_WEBVIEW_DEFAULT OFF) +if (UNIX AND NOT APPLE) + set(WITH_WEBVIEW_DEFAULT ON) +endif() + +option(WITH_WEBVIEW "Build with WebView support for AAD login popup browser" ${WITH_WEBVIEW_DEFAULT}) if (WITH_WEBVIEW) option(WITH_WEBVIEW_QT "Build with QtWebEngine support for AAD login broweser popup" OFF)