1

I'm using CMake with cotire and Qt, and there's a bug that I'm working around. The gist of it is that I have a target, qtwallet_unity, which depends on qtwallet_unity_automoc. However, I instead need it to depend on qtwallet_automoc. I've done:

add_dependencies(qtwallet_unity qtwallet_automoc)

But is there any way to remove the dependency on qtwallet_unity_automoc? Something like:

*remove_dependencies(qtwallet_unity qtwallet_unity_automoc)
Claudiu
  • 224,032
  • 165
  • 485
  • 680
  • Why cannot you remove the line were the offending dependency is added in the first place? Your question seems pretty tough, for example added dependencies do not seem to be among the target properties http://www.cmake.org/cmake/help/v3.0/manual/cmake-properties.7.html#properties-on-targets Somebody asked a similar question [here](http://stackoverflow.com/questions/22021312/how-can-i-get-the-list-of-dependencies-of-cmake-target) but there was no "definitive" answer... – Antonio Mar 27 '15 at 23:20
  • @Antonio: cotire is the one adding the dependency, so that'd mean me having to muck around with cotire, which I'd rather avoid doing. Ultimately that'll be the best solution - to patch cotire to fix the bug. – Claudiu Mar 27 '15 at 23:52
  • 1
    This should be fixed in cotire [1.7.0](https://github.com/sakra/cotire/releases/tag/cotire-1.7.0). – sakra Mar 29 '15 at 18:23

0 Answers0