Skip to content

Commit

Permalink
Update boost dependencies (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterdev authored Jun 14, 2024
1 parent a2c9100 commit bcc0e30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thirdparty/external_boost_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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 ()

Expand Down

0 comments on commit bcc0e30

Please sign in to comment.