소스 검색

ENH: Fix Intel 12 plugin project generation for VS < 10

Suggested-by: Dick Munroe <[email protected]>
Brad King 14 년 전
부모
커밋
3a8add058b
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      Source/cmLocalVisualStudio7Generator.cxx

+ 7 - 3
Source/cmLocalVisualStudio7Generator.cxx

@@ -1770,10 +1770,14 @@ cmLocalVisualStudio7Generator
   vskey += "\\Packages\\" CM_INTEL_PLUGIN_GUID ";ProductVersion";
   vskey += "\\Packages\\" CM_INTEL_PLUGIN_GUID ";ProductVersion";
   cmSystemTools::ReadRegistryValue(vskey.c_str(), intelVersion,
   cmSystemTools::ReadRegistryValue(vskey.c_str(), intelVersion,
                                    cmSystemTools::KeyWOW64_32);
                                    cmSystemTools::KeyWOW64_32);
-
-  // Version 10.1 actually uses 9.10 in project files!
-  if(intelVersion == "10.1")
+  if (intelVersion == "12.0")
+    {
+    // Version 12 actually uses 11.0 in project files!
+    intelVersion = "11.0" ;
+    }
+  else if(intelVersion == "10.1")
     {
     {
+    // Version 10.1 actually uses 9.10 in project files!
     intelVersion = "9.10";
     intelVersion = "9.10";
     }
     }