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
b253a064
Commit
b253a064
authored
Feb 25, 2002
by
Sebastien Barre
Browse files
FIX: command now expands *all* args (found through FOREACH example)
parent
b7177cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmAddExecutableCommand.cxx
View file @
b253a064
...
...
@@ -32,17 +32,22 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
m_Makefile
->
ExpandVariablesInString
(
exename
);
++
s
;
bool
use_win32
=
false
;
if
(
*
s
==
"WIN32"
)
{
++
s
;
std
::
vector
<
std
::
string
>
srclists
(
s
,
args
.
end
());
m_Makefile
->
AddExecutable
(
exename
.
c_str
(),
srclists
,
true
);
use_win32
=
true
;
}
else
std
::
vector
<
std
::
string
>
srclists
(
s
,
args
.
end
());
for
(
std
::
vector
<
std
::
string
>::
iterator
j
=
srclists
.
begin
();
j
!=
srclists
.
end
();
++
j
)
{
std
::
vector
<
std
::
string
>
srclists
(
s
,
args
.
end
());
m_Makefile
->
AddExecutable
(
exename
.
c_str
(),
srclists
,
false
);
m_Makefile
->
ExpandVariablesInString
(
*
j
);
}
m_Makefile
->
AddExecutable
(
exename
.
c_str
(),
srclists
,
use_win32
);
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