diff options
author | Brad King <brad.king@kitware.com> | 2014-02-04 18:34:52 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-02-04 18:34:52 (GMT) |
commit | 01a41bc98ca8f2451e69fde4ac513b57276809ff (patch) | |
tree | f69ce0124cf38cb48c7da29a5661318d676a9262 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | 5414b0e919e0ad182366499835ca65a5192148f8 (diff) | |
parent | 028a5285d8ff5053fc96ea9840cb341bdf636e24 (diff) | |
download | CMake-01a41bc98ca8f2451e69fde4ac513b57276809ff.zip CMake-01a41bc98ca8f2451e69fde4ac513b57276809ff.tar.gz CMake-01a41bc98ca8f2451e69fde4ac513b57276809ff.tar.bz2 |
Merge topic 'osx-rpath-unique'
028a5285 OS X: Make sure RPATHs are unique to avoid possible corruption.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 42492e6..0c5f35b 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -902,3 +902,20 @@ cmGlobalVisualStudioGenerator::OrderedTargetDependSet this->insert(*ti); } } + +std::string cmGlobalVisualStudioGenerator::ExpandCFGIntDir( + const std::string& str, + const std::string& config) const +{ + std::string replace = GetCMakeCFGIntDir(); + + std::string tmp = str; + for(std::string::size_type i = tmp.find(replace); + i != std::string::npos; + i = tmp.find(replace, i)) + { + tmp.replace(i, replace.size(), config); + i += config.size(); + } + return tmp; +} |