CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY — CMake 4.2.6 Documentation

# CMAKE_ADD_CUSTOM_COMMAND_DEPENDS_EXPLICIT_ONLY

Added in version 3.27.

Whether to enable the `DEPENDS_EXPLICIT_ONLY` option by default in `add_custom_command()`.

This variable affects the default behavior of the `add_custom_command()` command. Setting this variable to `ON` is equivalent to using the `DEPENDS_EXPLICIT_ONLY` option in all uses of that command.

See also `CMAKE_OPTIMIZE_DEPENDENCIES`.