The version_string.cmake file seemed to assume that its working directory was always somewhere inside the openvoronoi project dir. That is not always the case (especially not when including openvoronoi/CMakeLists.txt inside another project.
This change explicitly sets the working directory to PROJECT_SOURCE_DIR (which resolves to openvoronoi/src in this case), avoiding the issue described above.
The
version_string.cmake
file seemed to assume that its working directory was always somewhere inside theopenvoronoi
project dir. That is not always the case (especially not when includingopenvoronoi/CMakeLists.txt
inside another project.This change explicitly sets the working directory to
PROJECT_SOURCE_DIR
(which resolves toopenvoronoi/src
in this case), avoiding the issue described above.