mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 11:29:59 +01:00
24 lines
895 B
Diff
24 lines
895 B
Diff
|
See https://gitlab.com/corectrl/corectrl/-/issues/477
|
||
|
|
||
|
diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
|
||
|
index c262086..523ea97 100644
|
||
|
--- a/src/helper/CMakeLists.txt
|
||
|
+++ b/src/helper/CMakeLists.txt
|
||
|
@@ -26,15 +26,7 @@ message("D-Bus files will be installed into ${DBUS_DATADIR_PREFIX_DIR}/dbus-1")
|
||
|
|
||
|
# Find polkit
|
||
|
pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
|
||
|
-execute_process(
|
||
|
- COMMAND pkg-config --variable=policydir polkit-gobject-1
|
||
|
- RESULT_VARIABLE POLKIT_POLICY_INSTALL_DIR_RESULT
|
||
|
- OUTPUT_VARIABLE POLKIT_POLICY_INSTALL_DIR
|
||
|
- OUTPUT_STRIP_TRAILING_WHITESPACE
|
||
|
-)
|
||
|
-if(NOT POLKIT_POLICY_INSTALL_DIR_RESULT EQUAL "0")
|
||
|
- message(FATAL_ERROR "Failed to retrieve Polkit `policydir` variable using pkg-config")
|
||
|
-endif()
|
||
|
+option(POLKIT_POLICY_INSTALL_DIR "Polkit policy directory")
|
||
|
|
||
|
list(APPEND HELPER_COMPILE_DEFINITIONS
|
||
|
SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_TRACE
|