View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013021CMakeCMakepublic2012-03-06 10:542013-04-17 08:54
ReporterPetr Kmoch 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 2.8.11Fixed in VersionCMake 2.8.11 
Summary0013021: Support for SCM bindings in .sln files
DescriptionWe 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?
TagsNo tags attached.
Attached Fileszip file icon solution_scc.zip [^] (5,504 bytes) 2012-11-15 09:54

 Relationships

  Notes
(0028844)
Petr Kmoch (reporter)
2012-03-06 10:56

I'll be happy to try to create a patch, if this doesn't get backlogged.
(0028879)
Brad King (manager)
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 (reporter)
2012-03-09 09:31

Sorry about the misunderstanding. I'll try my hand at it, then. Thanks for the clarification.
(0031180)
Graham Menhennitt (reporter)
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 (reporter)
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 (reporter)
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 (manager)
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 (manager)
2013-04-17 08:54

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-03-06 10:54 Petr Kmoch New Issue
2012-03-06 10:56 Petr Kmoch Note Added: 0028844
2012-03-09 09:29 Brad King Note Added: 0028879
2012-03-09 09:29 Brad King Status new => backlog
2012-03-09 09:31 Petr Kmoch Note Added: 0028880
2012-10-05 01:04 Graham Menhennitt Note Added: 0031180
2012-10-05 03:51 Petr Kmoch Note Added: 0031181
2012-11-15 09:54 Petr Kmoch File Added: solution_scc.zip
2012-11-15 09:54 Petr Kmoch Note Added: 0031560
2012-11-16 09:27 Brad King Assigned To => Brad King
2012-11-16 09:27 Brad King Status backlog => assigned
2012-11-16 09:28 Brad King Note Added: 0031568
2012-11-16 09:28 Brad King Status assigned => resolved
2012-11-16 09:28 Brad King Resolution open => fixed
2012-11-16 09:28 Brad King Fixed in Version => CMake 2.8.11
2012-11-16 09:28 Brad King Target Version => CMake 2.8.11
2013-04-17 08:54 Robert Maynard Note Added: 0032869
2013-04-17 08:54 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team