28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
--- a/CMakeLists.txt 2018-07-31 15:01:17.000000000 +0200
|
|
+++ b/CMakeLists.txt 2018-07-31 15:01:17.000000000 +0200
|
|
@@ -49,6 +49,12 @@
|
|
|
|
find_package(PolkitQt5-1 REQUIRED 0.103.0)
|
|
|
|
+if (NOT IS_ABSOLUTE "${POLKITQT-1_INCLUDE_DIR}")
|
|
+ set(POLKITQT-1_INCLUDE_DIR "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_INCLUDE_DIR}")
|
|
+ set(POLKITQT-1_AGENT_LIBRARY "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_AGENT_LIBRARY}")
|
|
+ set(POLKITQT-1_CORE_LIBRARY "${POLKITQT-1_INSTALL_DIR}/${POLKITQT-1_CORE_LIBRARY}")
|
|
+endif()
|
|
+
|
|
include_directories(
|
|
${POLKITQT-1_INCLUDE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
--- a/CMakeLists.txt 2018-08-27 14:58:54.560731243 +0200
|
|
+++ b/CMakeLists.txt 2018-08-27 14:58:54.560731243 +0200
|
|
@@ -82,7 +81,8 @@
|
|
KF5::I18n
|
|
KF5::Crash
|
|
KF5::IconThemes
|
|
- ${POLKITQT-1_LIBRARIES}
|
|
+ ${POLKITQT-1_AGENT_LIBRARY}
|
|
+ ${POLKITQT-1_CORE_LIBRARY}
|
|
)
|
|
|
|
configure_file(polkit-kde-authentication-agent-1.desktop.cmake ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop)
|