[cmake-developers] [CMake 0013770]: Visual Studio Express 2012 Solution Folders

Mantis Bug Tracker mantis at public.kitware.com
Sun Dec 2 06:59:27 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13770 
====================================================================== 
Reported By:                Paris
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13770
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-12-02 06:59 EST
Last Modified:              2012-12-02 06:59 EST
====================================================================== 
Summary:                    Visual Studio Express 2012 Solution Folders
Description: 
Solution folders are now supported in Visual Studio Express 2012. 
They are only displayed, cannot be modified, but yet they are supported.
Would be good to allow generating them by Cmake then...

Generation is blocked in CMake source code for Express versions since Visual
Studio 10.
In additional info is the patch to enable back support for Solution Folders by
CMake in Visual Studio Express 2012.

Additional Information: 
 Source/cmGlobalVisualStudio10Generator.h   | 2 +-
 Source/cmGlobalVisualStudio11Generator.cxx | 7 +++++++
 Source/cmGlobalVisualStudio11Generator.h   | 1 +
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/Source/cmGlobalVisualStudio10Generator.h
b/Source/cmGlobalVisualStudio10Generator.h
index b377a20..1f27682 100644
--- a/Source/cmGlobalVisualStudio10Generator.h
+++ b/Source/cmGlobalVisualStudio10Generator.h
@@ -82,7 +82,7 @@ protected:
   std::string PlatformToolset;
   bool ExpressEdition;
 
-  bool UseFolderProperty();
+  virtual bool UseFolderProperty();
 
 private:
   class Factory;
diff --git a/Source/cmGlobalVisualStudio11Generator.cxx
b/Source/cmGlobalVisualStudio11Generator.cxx
index ba30e18..eac1b8d 100644
--- a/Source/cmGlobalVisualStudio11Generator.cxx
+++ b/Source/cmGlobalVisualStudio11Generator.cxx
@@ -93,3 +93,10 @@ cmLocalGenerator
*cmGlobalVisualStudio11Generator::CreateLocalGenerator()
   lg->SetGlobalGenerator(this);
   return lg;
 }
+
+
+//----------------------------------------------------------------------------
+bool cmGlobalVisualStudio11Generator::UseFolderProperty()
+{
+  return cmGlobalGenerator::UseFolderProperty();
+}
diff --git a/Source/cmGlobalVisualStudio11Generator.h
b/Source/cmGlobalVisualStudio11Generator.h
index 8898c5d..99cc5a0 100644
--- a/Source/cmGlobalVisualStudio11Generator.h
+++ b/Source/cmGlobalVisualStudio11Generator.h
@@ -33,6 +33,7 @@ public:
   virtual std::string GetUserMacrosDirectory() { return ""; }
 protected:
   virtual const char* GetIDEVersion() { return "11.0"; }
+  virtual bool UseFolderProperty();
 private:
   class Factory;
 };

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-12-02 06:59 Paris          New Issue                                    
======================================================================




More information about the cmake-developers mailing list