bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cmake support


From: Bruno Haible
Subject: Re: cmake support
Date: Sat, 05 Jan 2019 18:53:06 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]