dlt-daemon fails to cross build from source, because the upstream
CMakeLists.txt hard codes the build architecture pkg-config and
therefore fails to locate gtest. A side-quest of this is that running
tests is not feasible during cross compilation, but skipping the build
of tests actually changes the package contents, so doing so would break
reproducibility and is not an option. The reason it uses pkg-config is
to discover the version of gtest. While find_package cannot easily
report the version, one can pass a minimum required version. The
attached patch changes the logic to do that and thus avoids the breaking
pkg-config invocation. What do you think? Please propose this upstream
as it also helps other cross-building distributions such as PtxDist or
Yocto.
Helmut