|
Notes |
|
|
(0035916)
|
|
Nils Gladitz
|
|
2014-05-23 06:53
|
|
DEPENDS is used for file dependencies.
Try add_dependencies() for inter-target dependencies. |
|
|
|
(0035917)
|
|
Lars Christensen
|
2014-05-23 07:07
(edited on: 2014-05-23 07:11) |
|
Good point - i forgot about this! I tried this:
add_custom_target(foo COMMAND cmd /c echo foo COMMENT "Building foo")
add_custom_target(bar COMMAND cmd /c echo bar COMMENT "Building bar")
add_dependencies(bar foo)
But the problem persist. foo is built every time, bar is not. If I remove add_dependencies(bar foo)", neither foo or bar is built.
Edit: MESSAGE => COMMENT
|
|
|
|
(0035918)
|
|
Brad King
|
|
2014-05-23 08:46
|
|
|
|
|
(0035921)
|
|
Lars Christensen
|
|
2014-05-23 09:41
|
|
Thanks for the rapid response, you guys are awesome. I think you are right. I tried removing the 'Build' flag in the Configuration Manager, so that 'foo' isn't built. When manually building 'bar', 'foo' isn't build either (as Brad expected), even though dependencies are correct in under 'Project Dependencies'.
In my case, I have a rather big InnoSetup build job in the target that was built, which I certainly don't want to build every time. I have worked around the problem by having the two targets depends on a file from an add_custom_command() instead of each other. |
|
|
|
(0035922)
|
|
Brad King
|
|
2014-05-23 09:52
|
|
Okay, thanks for verifying my explanation (and memory). I'm glad you have a workaround. I'll resolve this as not fixable.
|
|
|
|
(0037140)
|
|
Robert Maynard
|
|
2014-11-03 08:38
|
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|