[cmake-developers] [CMake 0014493]: Could not set Visual Studio project keyword with VS_GLOBAL_KEYWORD and VS 2008

Mantis Bug Tracker mantis at public.kitware.com
Fri Oct 18 08:45:56 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14493 
====================================================================== 
Reported By:                mar-na
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14493
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-10-18 08:45 EDT
Last Modified:              2013-10-18 08:45 EDT
====================================================================== 
Summary:                    Could not set Visual Studio project keyword with
VS_GLOBAL_KEYWORD and VS 2008
Description: 
I want set the Visual Studio project keyword for a managed project to
ManagedCProj. I use VS 2008.
I found the target property VS_GLOBAL_KEYWORD. It was added in Issue 0012586.
But this only works for VS 2010 and not for VS 2008.
In the source code is this only added in cmVisualStudio10TargetGenerator.

Is cmLocalVisualStudio7Generator the right place to fix it?
There I found VS_KEYWORD. Is this the same? 

cmLocalVisualStudio7Generator:
const char* keyword = target.GetProperty("VS_KEYWORD");
  if(!keyword)
    {
    keyword = "Win32Proj";
    }
	
from cmVisualStudio10TargetGenerator:	
  const char* vsGlobalKeyword =
    this->Target->GetProperty("VS_GLOBAL_KEYWORD");
  if(!vsGlobalKeyword)
    {
    this->WriteString("<Keyword>Win32Proj</Keyword>\n", 2);
    }
  else
    {
    this->WriteString("<Keyword>", 2);
    (*this->BuildFileStream) << cmVS10EscapeXML(vsGlobalKeyword) <<
      "</Keyword>\n";
    }

Steps to Reproduce: 
set_target_properties(myTarget PROPERTIES VS_GLOBAL_KEYWORD "ManagedCProj") 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-10-18 08:45 mar-na         New Issue                                    
======================================================================




More information about the cmake-developers mailing list