diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-11-15 13:27:34 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-02-06 13:32:24 (GMT) |
commit | 4b55828a9f2afbc6c37e53f7cb0d4adec0fa73b5 (patch) | |
tree | 363750a44a9e759d40ec6fd04793fee33f20ec18 /Source/cmListFileCache.cxx | |
parent | 28d7432468932ea3a7425579e909d51fe36a70c7 (diff) | |
download | CMake-4b55828a9f2afbc6c37e53f7cb0d4adec0fa73b5.zip CMake-4b55828a9f2afbc6c37e53f7cb0d4adec0fa73b5.tar.gz CMake-4b55828a9f2afbc6c37e53f7cb0d4adec0fa73b5.tar.bz2 |
cmExpandListWithBacktrace: add handling of empty elements.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 3da266d..b28b282 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -539,11 +539,11 @@ std::ostream& operator<<(std::ostream& os, BT<std::string> const& s) return os << s.Value; } -std::vector<BT<std::string>> ExpandListWithBacktrace( - std::string const& list, cmListFileBacktrace const& bt) +std::vector<BT<std::string>> cmExpandListWithBacktrace( + std::string const& list, cmListFileBacktrace const& bt, bool emptyArgs) { std::vector<BT<std::string>> result; - std::vector<std::string> tmp = cmExpandedList(list); + std::vector<std::string> tmp = cmExpandedList(list, emptyArgs); result.reserve(tmp.size()); for (std::string& i : tmp) { result.emplace_back(std::move(i), bt); |