summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2013-02-01 22:02:55 (GMT)
committerBrad King <brad.king@kitware.com>2013-02-04 21:26:39 (GMT)
commita55d5ca48179d3be4d8406028c0992d45ada8882 (patch)
treedaa091795ff55c4962f7e1c23ff0dbd2f9e63659 /Source/cmNinjaNormalTargetGenerator.cxx
parent163812468054601c95ac894703a6299d3b324e22 (diff)
downloadCMake-a55d5ca48179d3be4d8406028c0992d45ada8882.zip
CMake-a55d5ca48179d3be4d8406028c0992d45ada8882.tar.gz
CMake-a55d5ca48179d3be4d8406028c0992d45ada8882.tar.bz2
Ninja: Avoid LNK1170 linker error
link.exe has problems with very very long lines in rsp files too. Use $in_newline instead of $in variable for rspcontent which separates the arguments with a newline instead of a simple space and was specially made for this purpose.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 65967a5..7e48cd7 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -190,7 +190,7 @@ cmNinjaNormalTargetGenerator
linkOptionVar += cmTarget::GetTargetTypeName(targetType);
const std::string linkOption =
GetMakefile()->GetSafeDefinition(linkOptionVar.c_str());
- rspcontent = "$in " + linkOption + " $LINK_PATH $LINK_LIBRARIES";
+ rspcontent = "$in_newline "+linkOption+" $LINK_PATH $LINK_LIBRARIES";
vars.Objects = responseFlag.c_str();
vars.LinkLibraries = "";
}