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.
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 invokingfind_package(pegtl CONFIG REQUIRED)
as well. You need to invoke bothfind_package
commands from your ownCMakeLists.txt
to usecppgraphqlgen
components which depend on PEGTL.