summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-13 13:26:37 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-13 13:26:37 (GMT)
commit602d95d16d72f18cd9ee8badac763943b95e30bf (patch)
treefa53c0503dcb64cfbd89c4cd7d0ed5a610d4249b
parent40f24f0ec266c15f8e887cb7e2be957b23d32c6a (diff)
parent54475018ae3ea04558b5372bc270e7c08af723f4 (diff)
downloadCMake-602d95d16d72f18cd9ee8badac763943b95e30bf.zip
CMake-602d95d16d72f18cd9ee8badac763943b95e30bf.tar.gz
CMake-602d95d16d72f18cd9ee8badac763943b95e30bf.tar.bz2
Merge topic 'find-command-restore-PATH-on-unix'
54475018 Restore find_(library|file|path) search of PATH itself
-rw-r--r--Source/cmFindBase.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index 082bbf0..c785e6c 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -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);
}