before building VTM, do the following

# clone perf-cpp repository
git submodule init
git submodule update

# build static library
cd perf-cpp
cmake . -B build -DCMAKE_INSTALL_PREFIX=install
cmake --build build
cmake --install build
cd ..

# build VTM
now VTM should build as expected and support performance counters