VS: Add support for NATVIS files
Add an explicit `<Natvis>` element in VS project files for `*.natvis` files. These enable custom debug visualizers for project-specific types. Fixes #16043.
This commit is contained in:
parent
c8e59d2dfa
commit
a6290cffae
|
@ -0,0 +1,5 @@
|
||||||
|
vs-natvis
|
||||||
|
---------
|
||||||
|
|
||||||
|
* :ref:`Visual Studio Generators` for VS 2010 and above learned to
|
||||||
|
place ``.natvis`` source files into VS project files properly.
|
|
@ -1187,6 +1187,8 @@ void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf)
|
||||||
tool = "PRIResource";
|
tool = "PRIResource";
|
||||||
} else if (ext == "xml") {
|
} else if (ext == "xml") {
|
||||||
tool = "XML";
|
tool = "XML";
|
||||||
|
} else if (ext == "natvis") {
|
||||||
|
tool = "Natvis";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->NsightTegra) {
|
if (this->NsightTegra) {
|
||||||
|
|
Loading…
Reference in New Issue