diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2014-04-13 09:21:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-04-15 14:14:50 (GMT) |
commit | 504bb62d9918e7cc57746f26d96ba705c7d701ca (patch) | |
tree | 3a52cb52f5f660da1a9042e8a925c4a5f9a17f7d /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 99514c7e9cfb23c96ab234df349d6de38693332a (diff) | |
download | CMake-504bb62d9918e7cc57746f26d96ba705c7d701ca.zip CMake-504bb62d9918e7cc57746f26d96ba705c7d701ca.tar.gz CMake-504bb62d9918e7cc57746f26d96ba705c7d701ca.tar.bz2 |
Ninja: replace \ in LINK_PATH for MinGW
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index c865617..73e36b0 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -523,6 +523,8 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() // ar.exe can't handle backslashes in rsp files (implicitly used by gcc) std::string& linkLibraries = vars["LINK_LIBRARIES"]; std::replace(linkLibraries.begin(), linkLibraries.end(), '\\', '/'); + std::string& link_path = vars["LINK_PATH"]; + std::replace(link_path.begin(), link_path.end(), '\\', '/'); } const std::vector<cmCustomCommand> *cmdLists[3] = { |