浏览代码

Fix .vfproj file version for Intel Fortran 10.1

The commit "Generate proper Intel Fortran project version" replaced the
hard-coded 9.10 value with a runtime registry lookup of the real
version.  Version 10.1 actually uses project file format 9.10, so this
commit switches it back for that version.  See issue #9169.
Brad King 16 年之前
父节点
当前提交
6f010f1c40
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 6 - 0
Source/cmLocalVisualStudio7Generator.cxx

@@ -1688,6 +1688,12 @@ cmLocalVisualStudio7Generator
   cmSystemTools::ReadRegistryValue(vskey.c_str(), intelVersion,
                                    cmSystemTools::KeyWOW64_32);
 
+  // Version 10.1 actually uses 9.10 in project files!
+  if(intelVersion == "10.1")
+    {
+    intelVersion = "9.10";
+    }
+
   fout << "<?xml version=\"1.0\" encoding = \"Windows-1252\"?>\n"
        << "<VisualStudioProject\n"
        << "\tProjectCreator=\"Intel Fortran\"\n"