diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 37cf7d85cd..a584141966 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -250,16 +250,17 @@ Options See also the :variable:`CMAKE_FIND_DEBUG_MODE` variable for debugging a more local part of the project. -``--debug-find=[,...]`` +``--debug-find-pkg=[,...]`` Put cmake find commands in a debug mode when running under calls - to ``find_package()``, where ```` is an entry in the given - comma-separated list of case-sensitive package names. + to :command:`find_package(\) `, where ```` + is an entry in the given comma-separated list of case-sensitive package + names. Like ``--debug-find``, but limiting scope to the specified packages. ``--debug-find-var=[,...]`` Put cmake find commands in a debug mode when called with ```` - as the return variable, where ```` is an entry in the given + as the result variable, where ```` is an entry in the given comma-separated list. Like ``--debug-find``, but limiting scope to the specified variable names. diff --git a/Source/cmake.h b/Source/cmake.h index 1187be571e..97444b8660 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -488,7 +488,7 @@ public: //! Do we want debug output from the find commands during the cmake run. bool GetDebugFindOutput() const { return this->DebugFindOutput; } bool GetDebugFindOutput(std::string const& var) const; - bool GetDebugFindPkgOutput(std::string const& var) const; + bool GetDebugFindPkgOutput(std::string const& pkg) const; void SetDebugFindOutput(bool b) { this->DebugFindOutput = b; } void SetDebugFindOutputPkgs(std::string const& args); void SetDebugFindOutputVars(std::string const& args);