Skip to content

Commit

Permalink
fix: Need link Xcursor for shutdown plugin
Browse files Browse the repository at this point in the history
Log: fix build error on openSUSE
  • Loading branch information
hillwoodroc authored and kegechen committed Apr 17, 2024
1 parent b2da5ad commit b24deb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/shutdown/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ find_package(DtkWidget REQUIRED)
# add_definitions("-DDISABLE_POWER_OPTIONS")
#endif()
pkg_check_modules(QGSettings REQUIRED IMPORTED_TARGET gsettings-qt)
pkg_check_modules(Xcursor REQUIRED IMPORTED_TARGET xcursor)

add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
add_library(${PLUGIN_NAME} SHARED ${SRCS} shutdown.qrc)
Expand All @@ -30,6 +31,7 @@ target_include_directories(${PLUGIN_NAME} PUBLIC ${DtkWidget_INCLUDE_DIRS}
target_link_libraries(${PLUGIN_NAME} PRIVATE
${DtkWidget_LIBRARIES}
PkgConfig::QGSettings
PkgConfig::Xcursor
Qt5::Widgets
Qt5::DBus
Qt5::Svg)
Expand Down

0 comments on commit b24deb8

Please sign in to comment.