Issue while building TVM with PAPI enabled

Hi,

I am trying to build with PAPI ON in config.cmake. So far, I have tried with both giving path to papi.pc and setting it ON. In either case, it is throwing the following error:

-- Using PAPI library
CMake Error at cmake/modules/contrib/PAPI.cmake:24 (target_link_libraries):
  Object library target "tvm_runtime_objs" may not link to anything.
Call Stack (most recent call first):
  CMakeLists.txt:544 (include)
-- Configuring incomplete, errors occurred!

Can someone help me here? I came across CMAKE- Object library target may not link to anything. Can this be the possible cause?

Thank you for your help.

Hello @xintin, you need to use a newer version of cmake. Version 3.12 or newer will work.

That worked. Thanks.