In the case of LIBKINETO_NOXPUPTI is not defined, the line 141 of CMakeLists.txt prevents from building cpu_only_srcs . However, line 151 also prevents from building xpupti_srcs.
It causes LIBKINETO_SRCS to be empty and the compilation will fail.
(I suppose that cpu_only_srcs should be the choice in this case.)