Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ endif()
find_package(QT NAMES Qt6 Qt5 CONFIG REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} CONFIG REQUIRED Core)
find_package(PkgConfig REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(Boost REQUIRED)
find_package(spdlog REQUIRED)
if (Boost_VERSION_STRING VERSION_LESS "1.89.0")
message(STATUS "Boost < 1.89 → using Boost::system")
find_package(Boost REQUIRED COMPONENTS system)
endif()
pkg_check_modules(GNL REQUIRED libnl-3.0 libnl-genl-3.0)
pkg_check_modules(MOUNT REQUIRED mount IMPORTED_TARGET)
pkg_check_modules(LUCENE REQUIRED liblucene++)
Expand Down
6 changes: 5 additions & 1 deletion src/searcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(LUCENE REQUIRED liblucene++)
pkg_check_modules(LUCENE_CONTRIB REQUIRED liblucene++-contrib)
find_package(Threads REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
find_package(Boost REQUIRED)
if (Boost_VERSION_STRING VERSION_LESS "1.89.0")
message(STATUS "Boost < 1.89 → using Boost::system")
find_package(Boost REQUIRED COMPONENTS system)
endif()

# Add executable
add_executable(deepin-anything-searcher
Expand Down