janelia-flyem/buildem

Packages dependencies should only be specified once.

ukoethe opened this issue · 0 comments

At present, a cmake script mystuff.cmake has to specify a dependency twice, once via include(dependency) and then again in DEPENDS ${dependency_NAME}. The second spec is easily forgotten, which can lead to bad behavior of a fresh buildem checkout. Unfortunately, the omission is not easily noticed by the developer of mystuff.cmake because dependency is usually already present in his build. Is it possible to remove the redundancy, e.g. by something like DEPENDS ${all_includes} which automatically makes all includes a dependency?