Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.
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
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,27 @@ endif()
# make own cmake modules available
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# this policy allows us to continue using the removed FindBoost module for now
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()

# dependencies
find_package(Boost
COMPONENTS
program_options
system
thread
REQUIRED
)

if(Boost_VERSION_STRING VERSION_LESS "1.69.0")
find_package(Boost
COMPONENTS
system
REQUIRED
)
endif()

find_package(PkgConfig REQUIRED)
pkg_check_modules(libcap
REQUIRED
Expand Down
6 changes: 5 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ target_include_directories(framework
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/everest>
)

if(Boost_VERSION_STRING VERSION_LESS "1.69.0")
set(EVEREST_FRAMEWORK_BOOST_SYSTEM_LINK_LIBRARY Boost::system)
endif()

target_link_libraries(framework
PUBLIC
date::date-tz
Expand All @@ -74,7 +78,7 @@ target_link_libraries(framework
everest::sqlite
${STD_FILESYSTEM_COMPAT_LIB}
PRIVATE
Boost::system
${EVEREST_FRAMEWORK_BOOST_SYSTEM_LINK_LIBRARY}
Boost::thread
Boost::program_options
mqttc
Expand Down