microsoft / cppgraphqlgen

C++ GraphQL schema service generator
MIT License
325 stars 45 forks source link

Using find_package(cppgraphqlgen) does not implicitly invoke find_package(pegtl) #288

Closed wravery closed 1 year ago

wravery commented 1 year ago

Per https://github.com/microsoft/vcpkg/pull/31412, you can't just use find_package(cppgraphqlgen CONFIG REQUIRED) by itself because it brings in dependencies on PEGTL without invoking find_package(pegtl CONFIG REQUIRED) as well. You need to invoke both find_package commands from your own CMakeLists.txt to use cppgraphqlgen components which depend on PEGTL.