From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 208.118.235.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from listsout.gnu.org (listsout.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 3C9CA1F6A9 for ; Sat, 5 Jan 2019 17:53:31 +0000 (UTC) Received: from localhost ([127.0.0.1]:59300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfq8X-0006CQ-QJ for normalperson@yhbt.net; Sat, 05 Jan 2019 12:53:29 -0500 Received: from eggsout.gnu.org ([209.51.188.92]:54907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfq8P-0006CG-LM for bug-gnulib@gnu.org; Sat, 05 Jan 2019 12:53:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfq8K-00067y-Gt for bug-gnulib@gnu.org; Sat, 05 Jan 2019 12:53:21 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::7]:26808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gfq8E-00064J-Om for bug-gnulib@gnu.org; Sat, 05 Jan 2019 12:53:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1546710787; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=vCQL1Fp4KbthcY2WgLOYpqAUXZGLR304FnFXAREnAaw=; b=sNRKlfMlGkLp3fCKNvgYrK7OEUDtP7kzwuaOuA/NShwLQ/vg8NtvnSt69kUOflj6K1 ksB6Bwz/KCrwC1YniqoLXMsKDdo3EPZQhdYTB8aVXtbfT9SQUHOQvfuE7fo2ZMxJeNnt dQWovyh5hUW2qZyIGeUmWvneAa6DcyJ/B3K9lKFy0dyLM7QDU8q6dW3BjW++9k7CzXZx iKjm9MT+s//NVOZ1lUUJkHBueuXVwQb7wSvR0kRUUjs+zSPEWIb6jIZWRRUWbTZEqLMe ZlGAFv5JTdP8YirHGDQYRa39cm7xsvsGot5Wzo1M3KYdLK0AOfqR7ETK+wWXLG6UauM8 EZ5A== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf2y/s=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.9 DYNA|AUTH) with ESMTPSA id v0a34ev05Hr67fP (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 5 Jan 2019 18:53:06 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: cmake support Date: Sat, 05 Jan 2019 18:53:06 +0100 Message-ID: <3784148.CO4aUIPAkI@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::7 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Pennebaker Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi, Andrew Pennebaker wrote: > Could we improve how gnulib integrates with downstream projects, to make it > easier to work with different build tools? In particular, would be helpful > for gnulib to easily work with cmake projects. > > In my case, I have an application that needs openat(), and I already have a > complex cmake configuration that would be difficult to rewrite in terms of > autotools. I don't think we will spend time to make gnulib-tool generate cmake configurations. 1. Because the GNU build system is based on Autotools. 2. Because many people say that cmake is a horror to use. [1][2] But gnulib-tool by design creates a subdirectory, and you can yourself - add a simple configure.ac to that subdirectory, as outlined in the documentation [3], - integrate this subdirectory with cmake through an 'ExternalProject' [4]. If, during this process, you encounter pain points that require (small) gnulib-tool changes, please come back to us and report them. Bruno [1] https://www.reddit.com/r/cpp/comments/4flb8z/fighting_through_a_cmake_hell/ [2] https://www.reddit.com/r/cpp/comments/7yps20/its_time_to_do_cmake_right/ [3] https://www.gnu.org/software/gnulib/manual/html_node/Initial-import.html [4] https://stackoverflow.com/questions/5971921/building-a-library-using-autotools-from-cmake