Skip to content

Commit

Permalink
[CMake] Set POLKIT_ACTION_DIR if empty
Browse files Browse the repository at this point in the history
Regression introduced in 81cd084
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Nov 30, 2024
1 parent 10da739 commit 163e5e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 163e5e1

Please sign in to comment.