Skip to content

Commit

Permalink
Fixed regression in boost.mysql dependency in boost 1.85
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Jul 10, 2024
1 parent 40be17d commit ead62b2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit ead62b2

Please sign in to comment.