Skip to content

Commit bcc0e30

Browse files
authored
Update boost dependencies (#253)
1 parent a2c9100 commit bcc0e30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

thirdparty/external_boost_deps.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ find_package(boost_json ${FIND_BOOST_PACKAGE_QUIET})
2626
find_package(boost_optional ${FIND_BOOST_PACKAGE_QUIET})
2727
find_package(boost_variant ${FIND_BOOST_PACKAGE_QUIET})
2828
find_package(boost_regex ${FIND_BOOST_PACKAGE_QUIET})
29+
find_package(boost_lexical_cast ${FIND_BOOST_PACKAGE_QUIET})
2930

3031
if (boost_algorithm_FOUND AND
3132
boost_filesystem_FOUND AND
@@ -40,8 +41,10 @@ if (boost_algorithm_FOUND AND
4041
imported_target_alias(boost_optional ALIAS boost_optional::boost_optional)
4142
imported_target_alias(boost_variant ALIAS boost_variant::boost_variant)
4243
imported_target_alias(boost_regex ALIAS boost_regex::boost_regex)
44+
imported_target_alias(boost_lexical_cast ALIAS boost_regex::lexical_cast)
45+
4346
else ()
44-
find_package(Boost COMPONENTS system filesystem numeric_conversion json regex ${FIND_BOOST_PACKAGE_QUIET} REQUIRED)
47+
find_package(Boost COMPONENTS system filesystem numeric_conversion json regex optional variant algorithm lexical_cast ${FIND_BOOST_PACKAGE_QUIET} REQUIRED)
4548

4649
if (Boost_FOUND)
4750
imported_target_alias(boost_algorithm ALIAS Boost::boost)
@@ -51,6 +54,7 @@ else ()
5154
imported_target_alias(boost_optional ALIAS Boost::boost)
5255
imported_target_alias(boost_variant ALIAS Boost::boost)
5356
imported_target_alias(boost_regex ALIAS Boost::regex)
57+
imported_target_alias(boost_lexical_cast ALIAS Boost::lexical_cast)
5458
endif ()
5559
endif ()
5660

0 commit comments

Comments
 (0)