From ead62b24bc56fad00002834b5c3ef68c2aefc553 Mon Sep 17 00:00:00 2001 From: Jarle Aase Date: Wed, 10 Jul 2024 13:04:49 +0300 Subject: [PATCH] Fixed regression in boost.mysql dependency in boost 1.85 --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d1c202..95716bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,6 +127,18 @@ find_package(Boost ${USE_BOOST_VERSION} REQUIRED COMPONENTS ${BOOST_LOG_DEP} ) +if (Boost_VERSION VERSION_GREATER_EQUAL "1.85.0") + find_package(Boost ${USE_BOOST_VERSION} REQUIRED COMPONENTS + system + context + chrono + json + charconv + program_options + ${BOOST_LOG_DEP} + ) +endif() + add_library(boost INTERFACE IMPORTED) set_property(TARGET boost PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIR})