Reading the documentation in add_custom_target I see this:

Dependencies listed with the DEPENDS
       argument may reference files and outputs of custom commands created
with add_custom_command() in the same directory (CMakeLists.txt file).


But this actually works just fine

add_custom_target(a
  ${CMAKE_COMMAND} -E echo "a"
  )

add_custom_target(b
  ${CMAKE_COMMAND} -E echo "b"
  DEPENDS a
  )

and now b depends on a.
So is the documentation wrong?
Because from what I gathered from it intra-dependencies relationships have to be defined only with
add_dependencies, but that doesn't explain why the above example works..

Thanks,
Andrea
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to