[cmake] disable WITH_WEBVIEW if not build on linux/bsd

This commit is contained in:
akallabeth 2024-01-29 09:38:15 +01:00 committed by akallabeth
parent 2cd64ba424
commit 8b04ab53eb
1 changed files with 6 additions and 1 deletions

View File

@ -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)