cmake-modules icon indicating copy to clipboard operation
cmake-modules copied to clipboard

GetGitRevisionDescription.cmake: if recent CMake, avoid including a written-to file

Open jcelerier opened this issue 6 months ago • 2 comments

"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.

jcelerier avatar Jun 24 '25 22:06 jcelerier