diff options
author | Brad King <brad.king@kitware.com> | 2008-05-10 22:39:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-05-10 22:39:06 (GMT) |
commit | 071725a1c1c419f8d00770364e6345ed300fa5a1 (patch) | |
tree | 6b8d754caf846fc996bf71287d5f3780acdc5a9f /Source/cmMakefileTargetGenerator.cxx | |
parent | 09dd298f6319992db30755e759ef3c3a01a2bf1a (diff) | |
download | CMake-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/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index 6cb5fd0..3f4b866 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -933,8 +933,10 @@ void cmMakefileTargetGenerator::WriteTargetDependRules() this->MultipleOutputPairs.begin(); pi != this->MultipleOutputPairs.end(); ++pi) { - *this->InfoFileStream << " \"" << pi->first << "\" \"" - << pi->second << "\"\n"; + *this->InfoFileStream + << " " << this->LocalGenerator->EscapeForCMake(pi->first.c_str()) + << " " << this->LocalGenerator->EscapeForCMake(pi->second.c_str()) + << "\n"; } *this->InfoFileStream << " )\n\n"; } |