I don’t see a whole lot in the docs about the preqequisites of the above function (?). Using it on 3.24.2 I have no problem but on some build agents I’m using which are on 3.16 it fails with Unknown CMake command "protobuf_generate_cpp". Can anyone tell me what the requirements for this really are please - or perhaps even better update the docs to clarify under which conditions it won’t be found?
On SO I also found this old post which perhaps could use some authoritative advice. The hackish answers there did not really help me.
Edit: I guess this is because of the different modes of find_package but I think it could be better documented that this appears to be only available if using the cmake provided find module.