Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorOlivier Goffart <olivier@woboq.com>2016-09-11 17:14:08 +0300
committerGitHub <noreply@github.com>2016-09-11 17:14:08 +0300
commit1d09f6b60fa1a56e9e42f28cc20bf305e4d327f2 (patch)
treeaebc1b4732fd3785c97280393803451bca1fd1bb /cmake
parent98268d102fb343c103cbb4fb28dedd390f3c9ecf (diff)
Allow to disable Shiboleth to build without QtWebkit (#5166)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/QtVersionAbstraction.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/modules/QtVersionAbstraction.cmake b/cmake/modules/QtVersionAbstraction.cmake
index b6b48e3d7..5bd853c84 100644
--- a/cmake/modules/QtVersionAbstraction.cmake
+++ b/cmake/modules/QtVersionAbstraction.cmake
@@ -22,12 +22,18 @@ if( Qt5Core_FOUND )
find_package(Qt5Test REQUIRED)
endif()
if(NOT TOKEN_AUTH_ONLY)
- find_package(Qt5WebKitWidgets REQUIRED)
- find_package(Qt5WebKit REQUIRED)
find_package(Qt5Widgets REQUIRED)
if(APPLE)
find_package(Qt5MacExtras REQUIRED)
endif(APPLE)
+
+ if(NOT NO_SHIBBOLETH)
+ find_package(Qt5WebKitWidgets)
+ find_package(Qt5WebKit)
+ if(NOT Qt5WebKitWidgets_FOUND)
+ message(FATAL_ERROR "Qt5WebKit required for Shibboleth. Use -DNO_SHIBBOLETH=1 to disable it.")
+ endif()
+ endif()
endif()
else( Qt5Core_FOUND )