cmFindProgramCommand: Re-implement search using more flexible approach

Avoid using KWSys SystemTools::FindProgram because it does much more
than we actually need for find_program and does not allow us to control
the order of preference between directories and names.  Create our own
cmFindProgramHelper much like cmFindLibraryHelper but without all the
find_library-specific parts.
This commit is contained in:
Brad King
2015-09-01 13:54:33 -04:00
parent fdbfc9f677
commit fc1990c933
2 changed files with 97 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ public:
private:
std::string FindProgram();
std::string FindNormalProgram();
std::string FindAppBundle();
std::string GetBundleExecutable(std::string bundlePath);