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
9fc2e202
Commit
9fc2e202
authored
Nov 30, 2012
by
Mathias Gaunard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ninja: fix usage of cldeps with ctest launchers
parent
965358fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
Source/cmNinjaTargetGenerator.cxx
Source/cmNinjaTargetGenerator.cxx
+9
-7
No files found.
Source/cmNinjaTargetGenerator.cxx
View file @
9fc2e202
...
...
@@ -423,17 +423,19 @@ cmNinjaTargetGenerator
std
::
vector
<
std
::
string
>
compileCmds
;
cmSystemTools
::
ExpandListArgument
(
compileCmd
,
compileCmds
);
if
(
useClDeps
)
{
std
::
string
cmdPrefix
=
clDepsBinary
+
lang
+
" $in
\"
$DEP_FILE
\"
$out "
+
clShowPrefix
+
clBinary
;
compileCmds
.
front
().
insert
(
0
,
cmdPrefix
);
}
for
(
std
::
vector
<
std
::
string
>::
iterator
i
=
compileCmds
.
begin
();
i
!=
compileCmds
.
end
();
++
i
)
this
->
GetLocalGenerator
()
->
ExpandRuleVariables
(
*
i
,
vars
);
std
::
string
cmdLine
;
if
(
useClDeps
)
{
cmdLine
=
clDepsBinary
+
lang
+
" $in
\"
$DEP_FILE
\"
$out "
+
clShowPrefix
+
clBinary
;
}
cmdLine
+=
this
->
GetLocalGenerator
()
->
BuildCommandLine
(
compileCmds
);
std
::
string
cmdLine
=
this
->
GetLocalGenerator
()
->
BuildCommandLine
(
compileCmds
);
// Write the rule for compiling file of the given language.
...
...
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