diff options
author | Patrick Gansterer <paroga@paroga.com> | 2013-02-01 22:02:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-04 21:26:39 (GMT) |
commit | a55d5ca48179d3be4d8406028c0992d45ada8882 (patch) | |
tree | daa091795ff55c4962f7e1c23ff0dbd2f9e63659 /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 163812468054601c95ac894703a6299d3b324e22 (diff) | |
download | CMake-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.cxx | 2 |
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 = ""; } |