How can I find the definition of a user-defined CMake function using CMake?
13:09 14 Jun 2023

I'm generating a build tree for someone's project using their CMakeLists.txt, which contains a reference to a user-defined function. Unfortunately, the referenced source-tree is huge, and it's not clear to me where the function is defined.

Does cmake provide a means of discovering and printing the location of user-defined cmake function definitions?

If not, I'll just use another program to search for it, but I'm curious. It doesn't seem to be included with --system-information, but maybe there's another option that includes this sort of information.

cmake