12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #ifndef cmSearchPath_h
- #define cmSearchPath_h
- #include "cmConfigure.h"
- #include <set>
- #include <string>
- #include <vector>
- class cmFindCommon;
- class cmSearchPath
- {
- public:
-
-
-
- cmSearchPath(cmFindCommon* findCmd = nullptr);
- ~cmSearchPath();
- const std::vector<std::string>& GetPaths() const { return this->Paths; }
- void ExtractWithout(const std::set<std::string>& ignore,
- std::vector<std::string>& outPaths,
- bool clear = false) const;
- void AddPath(const std::string& path);
- void AddUserPath(const std::string& path);
- void AddCMakePath(const std::string& variable);
- void AddEnvPath(const std::string& variable);
- void AddCMakePrefixPath(const std::string& variable);
- void AddEnvPrefixPath(const std::string& variable, bool stripBin = false);
- void AddSuffixes(const std::vector<std::string>& suffixes);
- protected:
- void AddPrefixPaths(const std::vector<std::string>& paths,
- const char* base = nullptr);
- void AddPathInternal(const std::string& path, const char* base = nullptr);
- cmFindCommon* FC;
- std::vector<std::string> Paths;
- };
- #endif
|