mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
VS: Always separate preprocessor defs by semicolon (#10902)
Separation by ',' only works in VS 2008 and below and does not work in the PlayStation3 VS plugin. Separation by ';' works in VS 10 and all prior versions.
This commit is contained in:
@@ -183,7 +183,7 @@ cmVisualStudioGeneratorOptions
|
||||
{
|
||||
fout << prefix << "PreprocessorDefinitions=\"";
|
||||
}
|
||||
const char* comma = "";
|
||||
const char* sep = "";
|
||||
for(std::vector<std::string>::const_iterator di = this->Defines.begin();
|
||||
di != this->Defines.end(); ++di)
|
||||
{
|
||||
@@ -208,15 +208,8 @@ cmVisualStudioGeneratorOptions
|
||||
define = cmVisualStudioGeneratorOptionsEscapeForXML(define.c_str());
|
||||
}
|
||||
// Store the flag in the project file.
|
||||
fout << comma << define;
|
||||
if(this->Version == 10)
|
||||
{
|
||||
comma = ";";
|
||||
}
|
||||
else
|
||||
{
|
||||
comma = ",";
|
||||
}
|
||||
fout << sep << define;
|
||||
sep = ";";
|
||||
}
|
||||
if(this->Version == 10)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user