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
c60557e9
Commit
c60557e9
authored
Jun 06, 2012
by
Peter Kuemmel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ninja: don't break because of empty commands
parent
128fe5d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
Source/cmGlobalNinjaGenerator.cxx
Source/cmGlobalNinjaGenerator.cxx
+8
-1
No files found.
Source/cmGlobalNinjaGenerator.cxx
View file @
c60557e9
...
...
@@ -225,10 +225,17 @@ cmGlobalNinjaGenerator::WriteCustomCommandBuild(const std::string& command,
const
cmNinjaDeps
&
deps
,
const
cmNinjaDeps
&
orderOnlyDeps
)
{
std
::
string
cmd
=
command
;
#ifdef _WIN32
if
(
cmd
.
empty
())
// TODO Shouldn't an empty command be handled by ninja?
cmd
=
"cmd.exe /c"
;
#endif
this
->
AddCustomCommandRule
();
cmNinjaVars
vars
;
vars
[
"COMMAND"
]
=
c
omman
d
;
vars
[
"COMMAND"
]
=
c
m
d
;
vars
[
"DESC"
]
=
EncodeLiteral
(
description
);
cmGlobalNinjaGenerator
::
WriteBuild
(
*
this
->
BuildFileStream
,
...
...
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