diff options
author | Brad King <brad.king@kitware.com> | 2019-08-28 15:28:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-28 15:28:59 (GMT) |
commit | aeeccc3b15c6476ecdaa51d40bb9500900d11ce2 (patch) | |
tree | 31d1eb4d5c306bfbf0ef7e633a95490d5e26ad03 /Source | |
parent | 1d953058a2fe88b36c17dfe1f0f1c703a53f5f96 (diff) | |
parent | 4c8760c9fb2951d897a307637a761c371e48e615 (diff) | |
download | CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.zip CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.tar.gz CMake-aeeccc3b15c6476ecdaa51d40bb9500900d11ce2.tar.bz2 |
Merge branch 'backport-find-no-name' into release-3.15
Merge-request: !3751
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmFindBase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx index e590802..42aff04 100644 --- a/Source/cmFindBase.cxx +++ b/Source/cmFindBase.cxx @@ -141,7 +141,7 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn) // look for old style // FIND_*(VAR name path1 path2 ...) - if (!newStyle) { + if (!newStyle && !this->Names.empty()) { // All the short-hand arguments have been recorded as names. std::vector<std::string> shortArgs = this->Names; this->Names.clear(); // clear out any values in Names |