If a CMake build was configured in a path that wasn't a descendant of the source tree, gen_version.py would fail, because Git wouldn't be able to find its metadata. It should always run in the source tree, whether that build path is below that or not.
If a CMake build was configured in a path that wasn't a descendant of the source tree,
gen_version.py
would fail, because Git wouldn't be able to find its metadata. It should always run in the source tree, whether that build path is below that or not.