I couldn’t find a documentation page specifying how to arrive from a module name, e.g. FindCUDAToolkit to the proper syntax of calling find_package, i.e. find_package(CUDAToolkit) in this case. I’m I missing something? If not, can it be added to documentation?
On second reading, technically this information is on find_package() page, but it’s not straightforward to uncover for a beginner. I think the main problem for me was that page https://cmake.org/cmake/help/latest/module/FindCUDAToolkit.html calls FindCUDAToolkit a script and has no reference to CUDAToolkit package.
I think enhancing the find_package docs would be the way to go here. Wanting to use module FindX via find_package, one could expect that the find_package docs would be of interest. Adding "use via find_package(X)" feels like adding "use via include(X)" to other module documentation.