[cmake-developers] [CMake 0012586]: [patch] CMake does not support Visual Studio projects types or dotnet references with managed C++

Mantis Bug Tracker mantis at public.kitware.com
Sun Nov 20 01:19:03 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12586 
====================================================================== 
Reported By:                Aaron Ten Clay
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12586
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-11-19 22:19 PST
Last Modified:              2011-11-19 22:19 PST
====================================================================== 
Summary:                    [patch] CMake does not support Visual Studio
projects types or dotnet references with managed C++
Description: 
CMake currently does not support setting project types or .NET references on
managed C++ projects with the Visual Studio 10 generator.

This is not a very "cross-platform" feature (unless Mono supports managed C++?)
but it is necessary for unit testing projects in Visual Studio.

Steps to Reproduce: 
Create a shared library project with managed C++ files with the Visual Studio 10
generator, and observe the apparent inability to specify ProjectType value for
the generated project XML file. Without specifying the correct UUID in this
field, Visual Studio will not recognize the project as a unit test project.

Additional Information: 
The attached patch adds support for three new project properties:

VS_GLOBAL_PROJECT_TYPES: A string containing UUIDs to embed in the Visual Studio
project file under <ProjectTypes>.

VS_GLOBAL_KEYWORD: Allows specification of a keyword like "ManagedCProj" instead
of the default "Win32Proj", under <Keyword>

VS_DOTNET_REFERENCES: Semicolon-delimited list of .NET references to add to the
project, which creates a new <ItemGroup>.


I tried to copy the coding style but might not have it quite right, there wasn't
much guidance on the wiki. If there is a better way to introduce these changes,
I'm happy to resubmit.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-11-19 22:19 Aaron Ten Clay New Issue                                    
2011-11-19 22:19 Aaron Ten Clay File Added:
VisualStudio10GeneratorProjectTypeAndDotNetReferenceSupport.patch               
    
======================================================================




More information about the cmake-developers mailing list