MantisBT - CMake
View Issue Details
0013021CMakeCMakepublic2012-03-06 10:542013-04-17 08:54
Petr Kmoch 
Brad King 
normalminorN/A
closedfixed 
 
CMake 2.8.11CMake 2.8.11 
0013021: Support for SCM bindings in .sln files
We are using CMake in a project controlled by ClearCase. For ClearCase-Visual Studio integration to function correctly, the ClearCase plugin must be mentioned in the .sln file "Global" section (as follows):

Global
  GlobalSection(RationalClearCase) = preSolution
    SourceControlProvider = RationalClearCase
  EndGlobalSection
  ...
EndGlobal

CMake has support for putting SCM bindings into .vcproj files, but there is no way to put this into the generated .sln file. Could such functionality be added?
No tags attached.
zip solution_scc.zip (5,504) 2012-11-15 09:54
https://public.kitware.com/Bug/file/4563/solution_scc.zip
Issue History
2012-03-06 10:54Petr KmochNew Issue
2012-03-06 10:56Petr KmochNote Added: 0028844
2012-03-09 09:29Brad KingNote Added: 0028879
2012-03-09 09:29Brad KingStatusnew => backlog
2012-03-09 09:31Petr KmochNote Added: 0028880
2012-10-05 01:04Graham MenhennittNote Added: 0031180
2012-10-05 03:51Petr KmochNote Added: 0031181
2012-11-15 09:54Petr KmochFile Added: solution_scc.zip
2012-11-15 09:54Petr KmochNote Added: 0031560
2012-11-16 09:27Brad KingAssigned To => Brad King
2012-11-16 09:27Brad KingStatusbacklog => assigned
2012-11-16 09:28Brad KingNote Added: 0031568
2012-11-16 09:28Brad KingStatusassigned => resolved
2012-11-16 09:28Brad KingResolutionopen => fixed
2012-11-16 09:28Brad KingFixed in Version => CMake 2.8.11
2012-11-16 09:28Brad KingTarget Version => CMake 2.8.11
2013-04-17 08:54Robert MaynardNote Added: 0032869
2013-04-17 08:54Robert MaynardStatusresolved => closed

Notes
(0028844)
Petr Kmoch   
2012-03-06 10:56   
I'll be happy to try to create a patch, if this doesn't get backlogged.
(0028879)
Brad King   
2012-03-09 09:29   
Re 0013021:0028844: Backlog *means* that we do not plan to actively work on a topic but are open to the change if a contributor submits a reasonable patch.

For .vcproj files we already have:

  http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:VS_GLOBAL_variable [^]
  http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:VS_SCC_AUXPATH [^]

and some other VS_SCC_* properties.

Something similar could be done for .sln files by using the *directory* property from the directory invoking the project() command that drives generation of the .sln.
(0028880)
Petr Kmoch   
2012-03-09 09:31   
Sorry about the misunderstanding. I'll try my hand at it, then. Thanks for the clarification.
(0031180)
Graham Menhennitt   
2012-10-05 01:04   
Pter,

Did you solve this? I have the same problem and am looking for a solution.

Thanks,
  Graham
(0031181)
Petr Kmoch   
2012-10-05 03:51   
No, not yet. As tends to happen, our team's priorities have been changed in the meantime.
(0031560)
Petr Kmoch   
2012-11-15 09:54   
I've created a patch implementing this. I did some research and found that different SCM bindings require vastly different format of the solution GlobalSection-s, so I added generic properties for defining an arbitrary GlobalSection in the .sln file (using directory properties, as per Brad's idea). I hope this approach is acceptable.

The patch is based on commit a8fa4c0, and includes a test for the functionality, identifiable as -R GlobalSections

I'll be happy to make changes to it as necessary.
(0031568)
Brad King   
2012-11-16 09:28   
Very nice. Applied:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=57cadc17 [^]
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2c919620 [^]
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=694322ec [^]

I added a merge commit to resolve a conflict with your other recently-contributed topic:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=45d4f81f [^]

Thanks for your work!
(0032869)
Robert Maynard   
2013-04-17 08:54   
Closing resolved issues that have not been updated in more than 4 months.