diff options
author | Brad King <brad.king@kitware.com> | 2023-05-01 15:38:16 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-05-01 15:38:32 (GMT) |
commit | 4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47 (patch) | |
tree | a76938b9dd21854b079cd0a23de21b1e61cb1eeb /Source/cmLocalNinjaGenerator.cxx | |
parent | c2100084c85aed33eea1f4abe83442dddc393137 (diff) | |
parent | 241304190ffdf9cc7d4ede0601da370b111468cc (diff) | |
download | CMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.zip CMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.tar.gz CMake-4dc47f82c2a3fc492d4cb94b4d96a24b9fc9cc47.tar.bz2 |
Merge topic 'CMake-uses-cmList-class'
241304190f CMake code rely on cmList class for CMake lists management (part. 2)
87fe031a07 cmList class: various enhancements
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8441
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmLocalNinjaGenerator.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index 42fa298..a047233 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -909,14 +909,11 @@ void cmLocalNinjaGenerator::AdditionalCleanFiles(const std::string& config) { if (cmValue prop_value = this->Makefile->GetProperty("ADDITIONAL_CLEAN_FILES")) { - std::vector<std::string> cleanFiles; - { - cmExpandList(cmGeneratorExpression::Evaluate(*prop_value, this, config), - cleanFiles); - } + cmList cleanFiles{ cmGeneratorExpression::Evaluate(*prop_value, this, + config) }; std::string const& binaryDir = this->GetCurrentBinaryDirectory(); cmGlobalNinjaGenerator* gg = this->GetGlobalNinjaGenerator(); - for (std::string const& cleanFile : cleanFiles) { + for (auto const& cleanFile : cleanFiles) { // Support relative paths gg->AddAdditionalCleanFile( cmSystemTools::CollapseFullPath(cleanFile, binaryDir), config); |