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::move
is used whenever possible to move a temporary instead of copying it. -
<container>.push_back
is changed to<container>.emplace_back
in several places to be able to construct objects in-place instead of moving them.
Topic-rename: reduce-temporaries