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
Brad King
CMake
Commits
e02e56c4
Commit
e02e56c4
authored
Oct 01, 2013
by
Brad King
Committed by
Kitware Robot
Oct 01, 2013
Browse files
Merge topic 'fix-duplicate-custom-commands'
dccd4949
Use first custom command for the same output (#14446)
parents
fa97f43c
dccd4949
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
e02e56c4
...
...
@@ -1069,6 +1069,19 @@ void
cmMakefile
::
UpdateOutputToSourceMap
(
std
::
string
const
&
output
,
cmSourceFile
*
source
)
{
OutputToSourceMap
::
iterator
i
=
this
->
OutputToSource
.
find
(
output
);
if
(
i
!=
this
->
OutputToSource
.
end
())
{
// Multiple custom commands produce the same output but may
// be attached to a different source file (MAIN_DEPENDENCY).
// LinearGetSourceFileWithOutput would return the first one,
// so keep the mapping for the first one.
//
// TODO: Warn the user about this case. However, the VS 8 generator
// triggers it for separate generate.stamp rules in ZERO_CHECK and
// individual targets.
return
;
}
this
->
OutputToSource
[
output
]
=
source
;
}
...
...
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