summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-05-10 22:39:06 (GMT)
committerBrad King <brad.king@kitware.com>2008-05-10 22:39:06 (GMT)
commit071725a1c1c419f8d00770364e6345ed300fa5a1 (patch)
tree6b8d754caf846fc996bf71287d5f3780acdc5a9f /Source/cmLocalUnixMakefileGenerator3.cxx
parent09dd298f6319992db30755e759ef3c3a01a2bf1a (diff)
downloadCMake-071725a1c1c419f8d00770364e6345ed300fa5a1.zip
CMake-071725a1c1c419f8d00770364e6345ed300fa5a1.tar.gz
CMake-071725a1c1c419f8d00770364e6345ed300fa5a1.tar.bz2
BUG: Fix generation of some paths into .cmake files in the build tree to escape strings for the CMake language. This fix allows users to put double quotes in the SOVERSION of a shared library.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index a717bef..50921be 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1110,8 +1110,8 @@ cmLocalUnixMakefileGenerator3
for(std::vector<std::string>::const_iterator f = files.begin();
f != files.end(); ++f)
{
- fout << "\"" << this->Convert(f->c_str(),START_OUTPUT,UNCHANGED)
- << "\"\n";
+ std::string fc = this->Convert(f->c_str(),START_OUTPUT,UNCHANGED);
+ fout << " " << this->EscapeForCMake(fc.c_str()) << "\n";
}
fout << ")\n";
commands.push_back(remove);