Merge branch 'find-command-restore-PATH-on-unix' into release

This commit is contained in:
Brad King 2016-07-11 10:31:36 -04:00
commit 2bef0758e8
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);
}