getml / reflect-cpp

A C++20 library for fast serialization, deserialization and validation using reflection. Supports JSON, BSON, CBOR, flexbuffers, msgpack, TOML, XML, YAML / msgpack.org[C++20]
https://getml.github.io/reflect-cpp/
MIT License
821 stars 66 forks source link

reflectcpp-config.cmake.in: Fix typo in check_required_components #78

Closed hlewin closed 3 months ago

hlewin commented 3 months ago

This fixes a typo in the call to check_required_components. Without this fix it is possible for a consumer to require a component that does not exist without getting an error from cmake. Eg

find_package(reflectcpp REQUIRED COMPONENTS does-not-exist)

would succeed, but should result in an error.