This is the mail archive of the
cygwin
mailing list for the Cygwin project.
CMake: parse error in file FindTclsh.cmake
- From: Sébastien Helleu <flashcode at flashtux dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 21 Aug 2019 09:12:53 +0200
- Subject: CMake: parse error in file FindTclsh.cmake
Hi,
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
closed.
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
".rst:
FindTclsh
---------
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 https://cmake.org/licensing for details.
#[=======================================================================[.rst:
FindTclsh
---------
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)
string(REGEX REPLACE
"^.*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.
Thanks.
--
Sébastien Helleu
web: weechat.org / flashtux.org
irc: FlashCode @ irc.freenode.net
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple