Merge topic 'find-command-restore-PATH-on-unix'

54475018 Restore find_(library|file|path) search of PATH itself
This commit is contained in:
Brad King 2016-07-13 09:26:37 -04:00 committed by CMake Topic Stage
commit 602d95d16d
1 changed files with 2 additions and 4 deletions

View File

@ -226,12 +226,10 @@ void cmFindBase::FillSystemEnvironmentPath()
paths.AddEnvPath(this->EnvironmentPath);
#if defined(_WIN32) || defined(__CYGWIN__)
paths.AddEnvPrefixPath("PATH", true);
paths.AddEnvPath("PATH");
#endif
} else {
// Add PATH
paths.AddEnvPath("PATH");
}
// Add PATH
paths.AddEnvPath("PATH");
paths.AddSuffixes(this->SearchPathSuffixes);
}