Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If cmake is invoked from a separate directory, running "git describe" to get the version info fails: $ cd /tmp/build && cmake [...] ~/bpftrace && make version_h -- Could not obtain version string from Git. Falling back to CMake version string. That's because cmake -P sets CMAKE_CURRENT_SOURCE_DIR to the current _working_ directory[1], which may be outside of the git repository. Fix it by explicitly passing CMAKE_SOURCE_DIR to Version.cmake. [1] https://cmake.org/cmake/help/latest/variable/CMAKE_CURRENT_SOURCE_DIR.html
- Loading branch information