Reduce allocation of temporary values on heap
This MR aims to address issues with redundant copying around of temporaries throughout the CMake code base.
What is done there:
-
std::moveis used whenever possible to move a temporary instead of copying it. -
<container>.push_backis changed to<container>.emplace_backin several places to be able to construct objects in-place instead of moving them.
Topic-rename: reduce-temporaries
Edited by Pavel Solodovnikov