jamboree / bustache

C++20 implementation of {{ mustache }}
82 stars 10 forks source link

Fix fmt dependency in exported cmake config #27

Closed sjoubert closed 2 years ago

sjoubert commented 2 years ago

Use find_dependency to find fmt if required. I don't think check_required_components was meant to do that, but rather to validate components (as in find_package(COMPONENTS) keyword), which bustache does not use/have.

The BUSTACHE_USE_FMT must also be exposed to the client users when required, otherwise it will fall back to the standard <format> version.