Didn’t see this on the forum anywhere, so thought I’d mention it. I got cmake to add @jimc’s natvis file to my Visual Studio project. It appears you just have to add it to the sources, something like this:
if(NOT ${NATVIS_PATH} STREQUAL "" AND WIN32)
message("NATVIS path: ${NATVIS_PATH}")
target_sources(
${target_name}
PRIVATE
${NATVIS_PATH}
)
endif()
I’m not a Cmake expert, so if anyone knows a better way of doing it, please do say.
Natvis file came from here: