Getdns-1.6.0 compile error

When trying to upgrade getdns I meet this error:

CMake Error at /openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Check (missing: CHECK_LIBRARIES CHECK_INCLUDE_DIR) (Required
  is at least version "0.9.6")
Call Stack (most recent call first):
  /openwrt/staging_dir/host/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindCheck.cmake:92 (find_package_handle_standard_args)
  CMakeLists.txt:940 (find_package)

I checked the error log and found that the package lacks some .h file, don't know how to resolve it.

Google the name of the .h to find out where it comes from, but it looks like Check, which is a test library for C.