From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64576 invoked by alias); 21 Aug 2019 07:12:58 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 64569 invoked by uid 89); 21 Aug 2019 07:12:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,SPF_PASS autolearn=no version=3.3.1 spammy=TCL, HContent-Transfer-Encoding:8bit X-HELO: mail.flashtux.org Received: from weechat.org (HELO mail.flashtux.org) (178.63.40.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Aug 2019 07:12:56 +0000 Received: by mail.flashtux.org (Postfix, from userid 1000) id A12F91CBA038; Wed, 21 Aug 2019 09:12:53 +0200 (CEST) Date: Wed, 21 Aug 2019 11:55:00 -0000 From: =?utf-8?Q?S=C3=A9bastien?= Helleu To: cygwin@cygwin.com Subject: CMake: parse error in file FindTclsh.cmake Message-ID: <20190821071253.ezyanhcr7vdaufmu@flashtux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-GPG-Key_fingerprint: 3122 55CC 88BA 5B8A 21FA 3C15 BEC8 E534 520B 673F X-GPG-Public_key: https://flashtux.org/files/pubkey.txt User-Agent: NeoMutt/20170113 (1.7.2) X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00295.txt.bz2 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