Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
d8708675
Commit
d8708675
authored
Jan 15, 2013
by
Brad King
Committed by
Kitware Robot
Jan 15, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge topic 'fix-empty-link-line-crash'
8ff1d471
CMake: Skip empty link.txt lines (
#13845
)
parents
3a40a8ad
8ff1d471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Source/cmake.cxx
Source/cmake.cxx
+6
-0
No files found.
Source/cmake.cxx
View file @
d8708675
...
...
@@ -3299,6 +3299,12 @@ int cmake::ExecuteLinkScript(std::vector<std::string>& args)
int
result
=
0
;
while
(
result
==
0
&&
cmSystemTools
::
GetLineFromStream
(
fin
,
command
))
{
// Skip empty command lines.
if
(
command
.
find_first_not_of
(
"
\t
"
)
==
command
.
npos
)
{
continue
;
}
// Setup this command line.
const
char
*
cmd
[
2
]
=
{
command
.
c_str
(),
0
};
cmsysProcess_SetCommand
(
cp
,
cmd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment