(0013696)
|
James Bigler
|
2008-10-01 17:38
|
|
Perhaps this could be generalized to allow for arbitrary key value pairs, so that the user could be free to add whatever attributes to the project's XML node they wish. This way one could do:
set(target PROPERTIES
VS_KEYVALUE "SccProjectName=\"Perforce Project\""
VS_KEYVALUE "SccLocalPath=\".\""
VS_KEYVALUE "SccProvider=\"MSSCCI:Perforce SCM\""
)
BTW, the patch submitted has a minor bug:
+ << providerString
Should be:
+ << "\tSccProvider=\"" << providerString << "\"\n"
Anyway, I would be happy to add a patch for this, if it would help it get integrated. |
|
(0013758)
|
Bill Hoffman
|
2008-10-07 16:24
|
|
I changed the property names a bit, but decided against the keyvalue stuff as you can not have more than one property on a target with the same name. Anyway, here is the commit:
cvs commit -m "BUG: fix for 4524, add support for target properties to set vs source code control information"
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Source/cmLocalVisualStudio7Generator.cxx,v <-- Source/cmLocalVisualStudio7Generator.cxx
new revision: 1.232; previous revision: 1.231
/cvsroot/CMake/CMake/Source/cmSetTargetPropertiesCommand.h,v <-- Source/cmSetTargetPropertiesCommand.h
new revision: 1.32; previous revision: 1.31 |
|