Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
0314c5f7
Commit
0314c5f7
authored
Nov 07, 2001
by
Bill Hoffman
Browse files
Allow multiline messages
parent
112707a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmMessageCommand.cxx
View file @
0314c5f7
...
...
@@ -49,25 +49,14 @@ bool cmMessageCommand::InitialPass(std::vector<std::string> const& args)
this
->
SetError
(
"called with incorrect number of arguments"
);
return
false
;
}
std
::
string
arg0
=
args
[
0
]
;
m_Makefile
->
ExpandVariablesInString
(
arg0
);
if
(
args
.
size
()
>=
2
)
std
::
string
message
;
std
::
vector
<
std
::
string
>::
const_iterator
i
=
args
.
begin
(
);
for
(;
i
!=
args
.
end
();
++
i
)
{
std
::
string
message
;
std
::
vector
<
std
::
string
>::
const_iterator
i
=
args
.
begin
();
++
i
;
for
(;
i
!=
args
.
end
();
++
i
)
{
message
+=
*
i
;
}
m_Makefile
->
ExpandVariablesInString
(
message
);
cmSystemTools
::
Message
(
arg0
.
c_str
(),
message
.
c_str
());
message
+=
*
i
;
}
else
{
cmSystemTools
::
Message
(
arg0
.
c_str
());
}
m_Makefile
->
ExpandVariablesInString
(
message
);
cmSystemTools
::
Message
(
message
.
c_str
());
return
true
;
}
Write
Preview
Supports
Markdown
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