On NixOS, we are having trouble with the file written to $prefix/share/c++utilities/cmake/c++utilitiesTargets.cmake. See this output in that file:
set_target_properties(c++utilities PROPERTIES
INTERFACE_COMPILE_DEFINITIONS "CPP_UTILITIES_USE_NATIVE_FILE_BUFFER;CPP_UTILITIES_STATIC"
INTERFACE_INCLUDE_DIRECTORIES "/nix/store/196qm6alw4a5v4ifg2h7n7yn3c2gry5f-cpp-utilities-5.2.0//nix/store/196qm6alw4a5v4ifg2h7n7yn3c2gry5f-cpp-utilities-5.2.0/include"
)
As you can see, the prefix is written twice from some reason. This issue makes the build for qtutilities and syncthingtray fail.