Where is find_package() finding the package?

Does cmake provide some way of knowing exactly where find_package(X) finds package X? E.g. can I find the installation location of package X files on my machine after calling find_package(X)?
Thanks!

For a config.cmake-using project, X_DIR should be reliable at that point.

If you just want to know in general, there is the --debug-find flag to CMake itself.

Great, thanks, that works!
And I see it documented too - if only I would read the documentation! :wink: