I am trying to understand some CMakeLists.txt made in the company where I work, and there are some calls to non-standard functions. They’re actually defined somewhere, in a Git submodule, trough very indirect ways. And so it was difficult to find their definition.
Is there in CMake a way to mimic to C++ namespaces, by prefixing the functions calls, so that it would be easier to localize their definition ?
Functions have global scope in CMake. There’s this proposal for project-level namespaces, but currently namespace-level functions are not part of that proposal.
Frankly, use a modern IDE and simply Ctrl+click the function name, which should take you to its definition. Otherwise, grep for a regular expression like function *\(someName or similar.