Add missing source_dir to extract_version_components cmake macro
extract_version_components uses source_dir but it is never defined. This was not caught before because this code path is not tested in the CI. This can be easily reproduced by configuring a tarbal or changing version.txt.
Backport: release
Edited by Mathieu Westphal (Kitware)