From 163e5e1f61f5ff5073acf049b30532a6b04cfd21 Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Sat, 30 Nov 2024 14:42:03 +0100 Subject: [PATCH] [CMake] Set POLKIT_ACTION_DIR if empty Regression introduced in 81cd0842d8c052c0cd031381c2f91197988a622f --- data/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 862e2e23..369dd69c 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -38,6 +38,9 @@ if(WITH_GTK) # Install policy rule pkg_get_variable(POLKIT_ACTION_DIR polkit-gobject-1 actiondir) + if(${POLKIT_ACTION_DIR} STREQUAL "") + set(POLKIT_ACTION_DIR "${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/actions/") + endif(${POLKIT_ACTION_DIR} STREQUAL "") install(FILES ${CMAKE_DATA_OUTPUT_DIRECTORY}/io.github.thetumultuousunicornofdarkness.cpu-x-daemon.policy DESTINATION ${POLKIT_ACTION_DIR}