MCPcopy Create free account
hub / github.com/Kitware/CMake / cmFindProgramCommand

Class cmFindProgramCommand

Source/cmFindProgramCommand.h:22–36  ·  view source on GitHub ↗

\class cmFindProgramCommand * \brief Define a command to search for an executable program. * * cmFindProgramCommand is used to define a CMake variable * that specifies an executable program. The command searches * in the current path (e.g., PATH environment variable) for * an executable that matches one of the supplied names. */

Source from the content-addressed store, hash-verified

20 * an executable that matches one of the supplied names.
21 */
22class cmFindProgramCommand : public cmFindBase
23{
24public:
25 cmFindProgramCommand(cmExecutionStatus& status);
26
27 bool InitialPass(std::vector<std::string> const& args);
28
29private:
30 std::string FindProgram();
31 std::string FindNormalProgram();
32 std::string FindNormalProgramDirsPerName();
33 std::string FindNormalProgramNamesPerDir();
34 std::string FindAppBundle();
35 std::string GetBundleExecutable(std::string const& bundlePath);
36};
37
38bool cmFindProgram(std::vector<std::string> const& args,
39 cmExecutionStatus& status);

Callers 1

cmFindProgramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…