8000 Update boost dependencies by Cheaterdev · Pull Request #253 · jinja2cpp/Jinja2Cpp · GitHub
[go: up one dir, main page]

Skip to content

Update boost dependencies #253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix boost deps
  • Loading branch information
Cheaterdev committed Jun 8, 2024
commit 507f52d8e29d7cc99eaa8130bf9e9c6ed8d9f370
20 changes: 12 additions & 8 deletions thirdparty/external_boost_deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,25 @@ 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
boost_numeric_conversion_FOUND AND
boost_json_FOUND AND
boost_optional_FOUND AND
boost_variant_FOUND AND boost_regex_FOUND)
imported_target_alias(boost_algorithm ALIAS boost_algorithm)
imported_target_alias(boost_filesystem ALIAS boost_filesystem)
imported_target_alias(boost_numeric_conversion ALIAS numeric_conversion)
imported_target_alias(boost_json ALIAS boost_json)
imported_target_alias(boost_optional ALIAS boost_optional)
imported_target_alias(boost_variant ALIAS boost_variant)
imported_target_alias(boost_regex ALIAS boost_regex)
imported_target_alias(boost_algorithm ALIAS boost_algorithm::boost_algorithm)
imported_target_alias(boost_filesystem ALIAS boost_filesystem::boost_filesystem)
imported_target_alias(boost_numeric_conversion ALIAS numeric_conversion::numeric_conversion)
imported_target_alias(boost_json ALIAS boost_json::boost_json)
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_regex::lexical_cast)
endif ()
endif ()

Expand Down
0