mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-10 23:43:58 +03:00
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
1 file changed
+2
-4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user