Skip to content

Commit

Permalink
chore: use pkgconfig to check mount
Browse files Browse the repository at this point in the history
Log: fix libmount.h: No such file or directory, fix build on NixOS
  • Loading branch information
wineee authored and Johnson-zs committed Oct 13, 2023
1 parent ffd77fc commit 307c329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/external/dde-dock-plugins/disk-mount/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(DdeDockInterface REQUIRED dde-dock)
pkg_check_modules(Gesttings REQUIRED gsettings-qt)
pkg_search_module(dfm-mount REQUIRED dfm-mount IMPORTED_TARGET)
pkg_check_modules(mount REQUIRED mount IMPORTED_TARGET)

set(QRC_FILE
resources.qrc
Expand Down Expand Up @@ -55,6 +56,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
${Gesttings_LIBRARIES}
${DdeDockInterface_LIBRARIES}
PkgConfig::dfm-mount
PkgConfig::mount
Qt5::Concurrent
)

Expand Down

0 comments on commit 307c329

Please sign in to comment.