MantisBT - CMake
View Issue Details
0013770CMakeCMakepublic2012-12-02 06:592013-05-06 09:32
Paris 
David Cole 
normalfeaturealways
closedfixed 
WindowsWindows 7Pro x64
CMake 2.8.10.2 
CMake 2.8.11CMake 2.8.11 
0013770: Visual Studio Express 2012 Solution Folders
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.
 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;
 };
No tags attached.
Issue History
2012-12-02 06:59ParisNew Issue
2012-12-02 07:01ParisNote Added: 0031794
2012-12-03 07:36Brad KingAssigned To => David Cole
2012-12-03 07:36Brad KingStatusnew => assigned
2012-12-03 14:18David ColeTarget Version => CMake 2.8.11
2012-12-03 14:18David ColeNote Added: 0031821
2012-12-03 14:18David ColeStatusassigned => resolved
2012-12-03 14:18David ColeFixed in Version => CMake 2.8.11
2012-12-03 14:18David ColeResolutionopen => fixed
2013-05-06 09:32Robert MaynardNote Added: 0032980
2013-05-06 09:32Robert MaynardStatusresolved => closed

Notes
(0031794)
Paris   
2012-12-02 07:01   
By the way the patch has been tested on the same system, and produces solutions that work like a charm.
(0031821)
David Cole   
2012-12-03 14:18   
Fix pushed to the 'next' branch:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7fa0f4b8703e08e958336b66f1b4f7db94ef4001 [^]
(0032980)
Robert Maynard   
2013-05-06 09:32   
Closing resolved issues that have not been updated in more than 4 months.