summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2021-01-22 13:47:27 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2021-02-02 18:11:44 (GMT)
commit9f060971411aca979807f70307d8b9fe1b43ff24 (patch)
tree9ab20661fc4f3efd21476d9a8dba89ef23bdc19b /Source/cmLocalVisualStudio7Generator.cxx
parent9b96fbc358aba8110ba09d3ad2262223ec0f0167 (diff)
downloadCMake-9f060971411aca979807f70307d8b9fe1b43ff24.zip
CMake-9f060971411aca979807f70307d8b9fe1b43ff24.tar.gz
CMake-9f060971411aca979807f70307d8b9fe1b43ff24.tar.bz2
PCH: Remove restrictions for REUSE_FROM signature for MSVC
Fixes: #20201
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index d2cdb99..97869c2 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -1010,7 +1010,8 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(
this->GetStaticLibraryFlags(
libflags, configName, target->GetLinkerLanguage(configName), target);
if (!libflags.empty()) {
- fout << "\t\t\t\tAdditionalOptions=\"" << libflags << "\"\n";
+ fout << "\t\t\t\tAdditionalOptions=\"" << this->EscapeForXML(libflags)
+ << "\"\n";
}
fout << "\t\t\t\tOutputFile=\""
<< this->ConvertToXMLOutputPathSingle(libpath) << "\"/>\n";