From 307c32978c7edf479b8234d12a439c0e1aa9ab7d Mon Sep 17 00:00:00 2001 From: rewine Date: Mon, 25 Sep 2023 15:34:31 +0800 Subject: [PATCH] chore: use pkgconfig to check mount Log: fix libmount.h: No such file or directory, fix build on NixOS --- src/external/dde-dock-plugins/disk-mount/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/external/dde-dock-plugins/disk-mount/CMakeLists.txt b/src/external/dde-dock-plugins/disk-mount/CMakeLists.txt index e51cd8203c..58da9644e8 100644 --- a/src/external/dde-dock-plugins/disk-mount/CMakeLists.txt +++ b/src/external/dde-dock-plugins/disk-mount/CMakeLists.txt @@ -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 @@ -55,6 +56,7 @@ target_link_libraries(${PROJECT_NAME} PRIVATE ${Gesttings_LIBRARIES} ${DdeDockInterface_LIBRARIES} PkgConfig::dfm-mount + PkgConfig::mount Qt5::Concurrent )