aewallin / openvoronoi

2D voronoi diagram for point and line-segment sites using incremental topology-oriented algorithm. C++ with python bindings. Licensed under LGPL2.1.
http://www.anderswallin.net/cam/
GNU Lesser General Public License v2.1
198 stars 68 forks source link

Explicitly set cwd in version_string.cmake to (cmake) project src dir. #21

Closed gavanderhoorn closed 6 years ago

gavanderhoorn commented 9 years ago

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.

gavanderhoorn commented 9 years ago

I can rebase if you want.

gavanderhoorn commented 9 years ago

Ping?