mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Refactoring: use append functions from cmext/algorithm
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include <cm/iterator>
|
||||
#include <cmext/algorithm>
|
||||
|
||||
#include "cmAlgorithms.h"
|
||||
#include "cmProperty.h"
|
||||
@@ -607,7 +608,7 @@ const char* cmStateDirectory::GetProperty(const std::string& prop,
|
||||
}
|
||||
if (prop == "VARIABLES") {
|
||||
std::vector<std::string> res = this->Snapshot_.ClosureKeys();
|
||||
cmAppend(res, this->Snapshot_.State->GetCacheEntryKeys());
|
||||
cm::append(res, this->Snapshot_.State->GetCacheEntryKeys());
|
||||
std::sort(res.begin(), res.end());
|
||||
output = cmJoin(res, ";");
|
||||
return output.c_str();
|
||||
|
||||
Reference in New Issue
Block a user