mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 18:09:42 -05:00
cmFindPackageCommand: Fix searching a root path as a prefix
A root path like `/` or `c:/` needs to end in a slash. Revise our prefix search logic to maintain a trailing slash instead of removing one just to add it again.
This commit is contained in:
@@ -173,9 +173,9 @@ private:
|
||||
bool CheckVersionFile(std::string const& version_file,
|
||||
std::string& result_version);
|
||||
bool SearchPrefix(std::string const& prefix);
|
||||
bool SearchFrameworkPrefix(std::string const& prefix_in);
|
||||
bool SearchAppBundlePrefix(std::string const& prefix_in);
|
||||
bool SearchEnvironmentPrefix(std::string const& prefix_in);
|
||||
bool SearchFrameworkPrefix(std::string const& prefix);
|
||||
bool SearchAppBundlePrefix(std::string const& prefix);
|
||||
bool SearchEnvironmentPrefix(std::string const& prefix);
|
||||
|
||||
struct OriginalDef
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user