summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-09-01 20:25:57 (GMT)
committerBrad King <brad.king@kitware.com>2015-09-02 14:17:22 (GMT)
commit8ea7611bc3650c75c86d22a3127cb117dbcaa9be (patch)
treee04eb16f45d1b9fc463ae82c4b0184ea04fabca1 /Source/cmFindProgramCommand.h
parentfc1990c93384d1d2122cd4e11398a8197b006504 (diff)
downloadCMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.zip
CMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.tar.gz
CMake-8ea7611bc3650c75c86d22a3127cb117dbcaa9be.tar.bz2
find_program: Optionally consider all names in each directory
When more than one value is given to the NAMES option this command by default will consider one name at a time and search every directory for it. Add a NAMES_PER_DIR option to tell this command to consider one directory at a time and search for all names in it.
Diffstat (limited to 'Source/cmFindProgramCommand.h')
-rw-r--r--Source/cmFindProgramCommand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmFindProgramCommand.h b/Source/cmFindProgramCommand.h
index df39b14..f88186b 100644
--- a/Source/cmFindProgramCommand.h
+++ b/Source/cmFindProgramCommand.h
@@ -25,6 +25,7 @@
class cmFindProgramCommand : public cmFindBase
{
public:
+ cmFindProgramCommand();
/**
* This is a virtual constructor for the command.
*/
@@ -55,6 +56,8 @@ public:
private:
std::string FindProgram();
std::string FindNormalProgram();
+ std::string FindNormalProgramDirsPerName();
+ std::string FindNormalProgramNamesPerDir();
std::string FindAppBundle();
std::string GetBundleExecutable(std::string bundlePath);