When I was building Dragora, I noticed that packages that use CMake
build system spend so much time on similar checks. So I decided to
find the way for optimization by caching these results. It seems to me
that I found the solution. I am not sure but I believe that
cmake-checks-cache [1] can help with. I lack knowledge so I want to
let you know about it because it can help speed up dragora builds.
As I pointed above, I lack knowledge but it seems to me that we can
add the cmake-checks-cache to the build environment and add
-DCMAKE_MODULE_PATH=PATH_TO_CMAKE_CHECKS_CACHE to each recipe that
uses cmake...
[1] https://github.com/cristianadam/cmake-checks-cache/