FindOpenOCD

Find the Open On-Chip Debugger.

Hints

This module reads hints about search locations from variables:

OpenOCD_ROOT

Preferred installation prefix.

Users may set these hints as normal CMake variables, cache entries or environment variables.

Imported Targets

This module provides the following imported targets, if found:

OpenOCD::OpenOCD

The Open On-Chip Debugger executable.

Result Variables

This will define the following variables:

OpenOCD_FOUND

True if the system has OpenOCD installed.

OpenOCD_VERSION

The version of OpenOCD which was found (eg. 2.5.7).

OpenOCD_VERSION_MAJOR

The major version number of OpenOCD which was found (eg. 2).

OpenOCD_VERSION_MINOR

The minor version number of OpenOCD which was found (eg. 5).

OpenOCD_VERSION_PATCH

The patch version number of OpenOCD which was found (eg. 7).

Cache Variables

The following cache variables may also be set:

OpenOCD_EXECUTABLE

The full path to the OpenOCD executable.