MSVC: Fix natvis not being added to project in VS2017

This commit is contained in:
SupSuper 2018-12-19 01:24:40 +00:00 committed by Filippos Karapetis
parent f6c37b09ea
commit 5004c331c9

View File

@ -190,8 +190,8 @@ void MSBuildProvider::createProjectFile(const std::string &name, const std::stri
project << "\t</ItemGroup>\n";
}
// Visual Studio 2015 automatically imports natvis files that are part of the project
if (name == PROJECT_NAME && _version == 14) {
// Visual Studio 2015 and up automatically import natvis files that are part of the project
if (name == PROJECT_NAME && _version >= 14) {
project << "\t<ItemGroup>\n";
project << "\t\t<None Include=\"" << setup.srcDir << "/devtools/create_project/scripts/scummvm.natvis\" />\n";
project << "\t</ItemGroup>\n";