FindTclsh — CMake 4.1.1 Documentation

# FindTclsh

Finds the Tcl shell command-line executable (`tclsh`), which includes the Tcl (Tool Command Language) interpreter.

## Result Variables

This module defines the following variables:

`Tclsh_FOUND`

  Boolean indicating whether the `tclsh` executable (and the requested version, if specified) is found. For backward compatibility, the `TCLSH_FOUND` variable is also set to the same value.

## Cache Variables

The following cache variables may also be set:

`TCL_TCLSH`

  The path to the `tclsh` executable.

## Examples

Finding the `tclsh` command-line executable:

    find_package(Tclsh)

## See Also

- The `FindTCL` module to find the Tcl installation.

- The `FindTclStub` module to find the Tcl Stubs Library.