Use --object-directory to scan for gcov data files #72
Fixes an issue with gcovr being run on projects with out-of-source builds, e.g. CMake-based builds. If --object-directory is given, this path will be scanned in addition to --root to find gcda/gcno files.
What if --root is not specified, then the --object-directory is still ignored for searching for data files.
Shouldn't it be like this:
@theold190 valid point, I amended my changes to implement your proposal. Sorry for the delay.
@DaMouse404 The last commit to the upstream repository has been made over a year ago, so it seems that the maintainer is no longer paying attention to the project.
The following change to the oos testcase, such that I believe it more closely reflects how tools like autoconf/automake/cmake perform out of source builds (what they call vpath builds) It currently fails, showing the gcovr is issues with oos paths. See github issues gcovr#61 gcovr#64 gcovr#72 gcovr#112