CMake: parse error in file FindTclsh.cmake

Sébastien Helleu
Wed Aug 21 11:55:00 GMT 2019


In the version 3.14.5 of CMake, I have issues to detect Tcl (I'm author of
WeeChat, which uses TCL language as one of the supported language scripts).

The file seems to have a comment (as rst) on top, but it is not properly

I have the following error:

CMake Error at /usr/share/cmake-3.14.5/Modules/FindTclsh.cmake:93:
  Parse error.  Expected a command name, got unterminated bracket with text



  Find tclsh

Call Stack (most recent call first):
  cmake/FindTCL.cmake:59 (include)
  src/plugins/CMakeLists.txt:121 (find_package)

-- Configuring incomplete, errors occurred!

The content of /usr/share/cmake-3.14.5/Modules/FindTclsh.cmake starts with:

# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or for details.


Find tclsh

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:


  TCLSH_FOUND = TRUE if tclsh has been found
  TCL_TCLSH = the path to the tclsh executable

get_filename_component(TK_WISH_PATH "${TK_WISH}" PATH)
get_filename_component(TK_WISH_PATH_PARENT "${TK_WISH_PATH}" PATH)
  "^.*wish([0-9]\\.*[0-9]).*$" "\\1" TK_WISH_VERSION "${TK_WISH}")

So for me this line is missing before the first CMake command:


Please let me know if I have report this bug on a tracker or send a patch.


Sébastien Helleu

web: /
irc: FlashCode @

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list