. "${GRIMOIRE}/CMAKE_DEPENDS" &&

if [[ "${SDBUS_CPP_BRANCH}" == "scm" ]]; then
  depends git
fi

if list_find "${SDBUS_CPP_OPTS}" "-DBUILD_DOC=ON"; then
  optional_depends doxygen \
                   "-DBUILD_DOXYGEN_DOC=ON" \
                   "-DBUILD_DOXYGEN_DOC=OFF" \
                   "for building Doxygen documentation"
fi &&

optional_depends expat \
                 "-DBUILD_CODE_GEN=ON" \
                 "-DBUILD_CODE_GEN=OFF" \
                 "build code generator" &&

optional_depends systemd \
                 "" \
                 "" \
                 "for using libsystemd (otherwise, elogind)" &&
if ! is_depends_enabled "${SPELL}" "systemd"; then
  depends elogind
fi
