mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
Merge topic 'fix-11695-spaces-in-vs10-rc-defs'
008d116VSResource: Avoid windres /D with quoted spaces (#11695)8f9919dAvoid space in rc /D values for VS6 and Cygwin (#11695)78fe97fFix line too long KWStyle issue (#11695)6627560VS10: Escape double quote chars in defines for rc files (#11695)
This commit is contained in:
@@ -755,7 +755,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
|
||||
}
|
||||
fout << "\"\n";
|
||||
targetOptions.OutputFlagMap(fout, "\t\t\t\t");
|
||||
targetOptions.OutputPreprocessorDefinitions(fout, "\t\t\t\t", "\n");
|
||||
targetOptions.OutputPreprocessorDefinitions(fout, "\t\t\t\t", "\n", "CXX");
|
||||
fout << "\t\t\t\tAssemblerListingLocation=\"" << configName << "\"\n";
|
||||
fout << "\t\t\t\tObjectFile=\"$(IntDir)\\\"\n";
|
||||
if(targetBuilds)
|
||||
@@ -789,7 +789,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
|
||||
}
|
||||
// add the -D flags to the RC tool
|
||||
fout << "\"";
|
||||
targetOptions.OutputPreprocessorDefinitions(fout, "\n\t\t\t\t", "");
|
||||
targetOptions.OutputPreprocessorDefinitions(fout, "\n\t\t\t\t", "", "RC");
|
||||
fout << "/>\n";
|
||||
tool = "VCMIDLTool";
|
||||
if(this->FortranProject)
|
||||
@@ -1462,6 +1462,7 @@ void cmLocalVisualStudio7Generator
|
||||
else if(!fcinfo.FileConfigMap.empty())
|
||||
{
|
||||
const char* aCompilerTool = "VCCLCompilerTool";
|
||||
const char* lang = "CXX";
|
||||
if(this->FortranProject)
|
||||
{
|
||||
aCompilerTool = "VFFortranCompilerTool";
|
||||
@@ -1479,6 +1480,7 @@ void cmLocalVisualStudio7Generator
|
||||
if(ext == "rc")
|
||||
{
|
||||
aCompilerTool = "VCResourceCompilerTool";
|
||||
lang = "RC";
|
||||
if(this->FortranProject)
|
||||
{
|
||||
aCompilerTool = "VFResourceCompilerTool";
|
||||
@@ -1520,7 +1522,8 @@ void cmLocalVisualStudio7Generator
|
||||
fileOptions.OutputAdditionalOptions(fout, "\t\t\t\t\t", "\n");
|
||||
fileOptions.OutputFlagMap(fout, "\t\t\t\t\t");
|
||||
fileOptions.OutputPreprocessorDefinitions(fout,
|
||||
"\t\t\t\t\t", "\n");
|
||||
"\t\t\t\t\t", "\n",
|
||||
lang);
|
||||
}
|
||||
if(!fc.AdditionalDeps.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user