blob: 2ac49c32acd6c162d4ab47793d2d7013fa0c1319 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--- razorqt-policykit/CMakeLists.txt
+++ razorqt-policykit/CMakeLists.txt
@@ -1,4 +1,9 @@
+OPTION(ENABLE_POLICYKIT "Enable policykit integration" ON)
+
+if (ENABLE_POLICYKIT)
+
find_package(PolkitQt-1)
+
if (NOT POLKITQT-1_LIB_DIR AND NOT POLKITQT-1_INCLUDE_DIR)
message(WARNING "Qt bindings for policykit are not found. Razor policykit integration won't be built")
message(STATUS "Hint: package libpolkit-qt-1-devel on openSUSE")
@@ -55,3 +60,5 @@
install(TARGETS razor-policykit-agent DESTINATION bin)
endif()
+
+endif (ENABLE_POLICYKIT)
|