cmake-modules
cmake-modules copied to clipboard
GetGitRevisionDescription.cmake: if recent CMake, avoid including a written-to file
"Recent" CMake (CMake 3.18 was released in july 2020, five years ago) supports evaluating strings with variable directly. In platforms with iffy filesystems (Windows), this avoids issues with for instance timestamps causing CMake+Ninja to end in infinite reconfigure loops.