Merge topic 'find-command-restore-PATH-on-unix'
54475018 Restore find_(library|file|path) search of PATH itself
This commit is contained in:
commit
602d95d16d
@ -226,12 +226,10 @@ void cmFindBase::FillSystemEnvironmentPath()
|
|||||||
paths.AddEnvPath(this->EnvironmentPath);
|
paths.AddEnvPath(this->EnvironmentPath);
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
paths.AddEnvPrefixPath("PATH", true);
|
paths.AddEnvPrefixPath("PATH", true);
|
||||||
paths.AddEnvPath("PATH");
|
|
||||||
#endif
|
#endif
|
||||||
} else {
|
|
||||||
// Add PATH
|
|
||||||
paths.AddEnvPath("PATH");
|
|
||||||
}
|
}
|
||||||
|
// Add PATH
|
||||||
|
paths.AddEnvPath("PATH");
|
||||||
paths.AddSuffixes(this->SearchPathSuffixes);
|
paths.AddSuffixes(this->SearchPathSuffixes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user