diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 13:26:37 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-07-13 13:26:37 (GMT) |
commit | 602d95d16d72f18cd9ee8badac763943b95e30bf (patch) | |
tree | fa53c0503dcb64cfbd89c4cd7d0ed5a610d4249b | |
parent | 40f24f0ec266c15f8e887cb7e2be957b23d32c6a (diff) | |
parent | 54475018ae3ea04558b5372bc270e7c08af723f4 (diff) | |
download | CMake-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.cxx | 6 |
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); } |