diff --git a/Modules/FindTclsh.cmake b/Modules/FindTclsh.cmake index 878735ac01..81c666a207 100644 --- a/Modules/FindTclsh.cmake +++ b/Modules/FindTclsh.cmake @@ -5,16 +5,41 @@ FindTclsh --------- -Find tclsh +Finds the Tcl shell command-line executable (``tclsh``), which includes the Tcl +(Tool Command Language) interpreter. -This module finds if TCL is installed and determines where the include -files and libraries are. It also determines what the name of the -library is. This code sets the following variables: +Result Variables +^^^^^^^^^^^^^^^^ -:: +This module defines the following variables: - TCLSH_FOUND = TRUE if tclsh has been found - TCL_TCLSH = the path to the tclsh executable +``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: + +.. code-block:: cmake + + find_package(Tclsh) + +See Also +^^^^^^^^ + +* The :module:`FindTCL` module to find the Tcl installation. +* The :module:`FindTclStub` module to find the Tcl Stubs Library. #]=======================================================================] get_filename_component(TK_WISH_PATH "${TK_WISH}" PATH)