FindOpenOCD¶
Find the Open On-Chip Debugger.
Hints¶
This module reads hints about search locations from variables:
OpenOCD_ROOTPreferred 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::OpenOCDThe Open On-Chip Debugger executable.
Result Variables¶
This will define the following variables:
OpenOCD_FOUNDTrue if the system has OpenOCD installed.
OpenOCD_VERSIONThe version of OpenOCD which was found (eg. 2.5.7).
OpenOCD_VERSION_MAJORThe major version number of OpenOCD which was found (eg. 2).
OpenOCD_VERSION_MINORThe minor version number of OpenOCD which was found (eg. 5).
OpenOCD_VERSION_PATCHThe patch version number of OpenOCD which was found (eg. 7).
Cache Variables¶
The following cache variables may also be set:
OpenOCD_EXECUTABLEThe full path to the OpenOCD executable.