diff --git a/thirdparty/external_boost_deps.cmake b/thirdparty/external_boost_deps.cmake index 8b3d355..e6305d2 100644 --- a/thirdparty/external_boost_deps.cmake +++ b/thirdparty/external_boost_deps.cmake @@ -26,6 +26,7 @@ find_package(boost_json ${FIND_BOOST_PACKAGE_QUIET}) find_package(boost_optional ${FIND_BOOST_PACKAGE_QUIET}) find_package(boost_variant ${FIND_BOOST_PACKAGE_QUIET}) find_package(boost_regex ${FIND_BOOST_PACKAGE_QUIET}) +find_package(boost_lexical_cast ${FIND_BOOST_PACKAGE_QUIET}) if (boost_algorithm_FOUND AND boost_filesystem_FOUND AND @@ -40,8 +41,10 @@ if (boost_algorithm_FOUND AND imported_target_alias(boost_optional ALIAS boost_optional::boost_optional) imported_target_alias(boost_variant ALIAS boost_variant::boost_variant) imported_target_alias(boost_regex ALIAS boost_regex::boost_regex) + imported_target_alias(boost_lexical_cast ALIAS boost_regex::lexical_cast) + else () - find_package(Boost COMPONENTS system filesystem numeric_conversion json regex ${FIND_BOOST_PACKAGE_QUIET} REQUIRED) + find_package(Boost COMPONENTS system filesystem numeric_conversion json regex optional variant algorithm lexical_cast ${FIND_BOOST_PACKAGE_QUIET} REQUIRED) if (Boost_FOUND) imported_target_alias(boost_algorithm ALIAS Boost::boost) @@ -51,6 +54,7 @@ else () imported_target_alias(boost_optional ALIAS Boost::boost) imported_target_alias(boost_variant ALIAS Boost::boost) imported_target_alias(boost_regex ALIAS Boost::regex) + imported_target_alias(boost_lexical_cast ALIAS Boost::lexical_cast) endif () endif ()