فهرست منبع

Merge topic 'fix-13770-folders-w-vs11-express'

7fa0f4b VS11: Allow using folders with the VS11 Express Edition (#13770)
David Cole 13 سال پیش
والد
کامیت
41fe73a6bf
3فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 1 1
      Source/cmGlobalGenerator.cxx
  2. 9 0
      Source/cmGlobalVisualStudio11Generator.cxx
  3. 1 0
      Source/cmGlobalVisualStudio11Generator.h

+ 1 - 1
Source/cmGlobalGenerator.cxx

@@ -2047,7 +2047,7 @@ bool cmGlobalGenerator::UseFolderProperty()
     }
 
   // By default, this feature is OFF, since it is not supported in the
-  // Visual Studio Express editions:
+  // Visual Studio Express editions until VS11:
   //
   return false;
 }

+ 9 - 0
Source/cmGlobalVisualStudio11Generator.cxx

@@ -93,3 +93,12 @@ cmLocalGenerator *cmGlobalVisualStudio11Generator::CreateLocalGenerator()
   lg->SetGlobalGenerator(this);
   return lg;
 }
+
+//----------------------------------------------------------------------------
+bool cmGlobalVisualStudio11Generator::UseFolderProperty()
+{
+  // Intentionally skip over the parent class implementation and call the
+  // grand-parent class's implementation. Folders are not supported by the
+  // Express editions in VS10 and earlier, but they are in VS11 Express.
+  return cmGlobalVisualStudio8Generator::UseFolderProperty();
+}

+ 1 - 0
Source/cmGlobalVisualStudio11Generator.h

@@ -33,6 +33,7 @@ public:
   virtual std::string GetUserMacrosDirectory() { return ""; }
 protected:
   virtual const char* GetIDEVersion() { return "11.0"; }
+  bool UseFolderProperty();
 private:
   class Factory;
 };