Skip to content

Commit bbc19a5

Browse files
committed
Link to bson
1 parent 641e157 commit bbc19a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
88
if(HAVE_BOOST_TEST)
99

1010
find_package(fmt)
11-
if(fmt_FOUND)
11+
find_package(bson 2.0.2 CONFIG)
12+
if(fmt_FOUND AND bson_FOUND)
13+
message(STATUS "Boost.Decimal: Test with fmtlib and bson")
14+
boost_test_jamfile(FILE Jamfile LINK_LIBRARIES Boost::decimal Boost::core Boost::math Boost::multiprecision Boost::charconv Boost::random fmt::fmt bson::bson COMPILE_DEFINITIONS BOOST_DECIMAL_TEST_FMT)
15+
elseif(fmt_FOUND)
1216
message(STATUS "Boost.Decimal: Test with fmtlib")
1317
boost_test_jamfile(FILE Jamfile LINK_LIBRARIES Boost::decimal Boost::core Boost::math Boost::multiprecision Boost::charconv Boost::random fmt::fmt COMPILE_DEFINITIONS BOOST_DECIMAL_TEST_FMT)
1418
else()
15-
message(STATUS "Boost.Decimal: Test without fmtlib")
19+
message(STATUS "Boost.Decimal: Test without fmtlib and bson")
1620
boost_test_jamfile(FILE Jamfile LINK_LIBRARIES Boost::decimal Boost::core Boost::math Boost::multiprecision Boost::charconv Boost::random)
1721
endif()
1822

0 commit comments

Comments
 (0)