Skip to content
Open
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
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ include_directories(

# Find required packages
find_package(Threads REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread program_options)
# FindBoost is deprecated in CMake 3.30+ (CMP0167); use BoostConfig.cmake there
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.30)
find_package(Boost CONFIG REQUIRED COMPONENTS thread program_options
HINTS ${BOOST_ROOT} $ENV{BOOST_ROOT})
else()
find_package(Boost REQUIRED COMPONENTS thread program_options)
endif()
find_package(jsoncpp REQUIRED)

# Check for the presence of an include file and report an error if not found
Expand Down
Loading