Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Alan W. Irwin
On 2018-01-09 12:01- Cosimo Lupo wrote: Hello, I'm new to Cmake. I would like to port to cmake a project that is currently built with the Autotools and depends on gnulib, the GNU Portability Library: https://www.gnu.org/software/gnulib/ (The project in question is

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Konstantin Tokarev
Alfred: Gnulib isn't library in usual sense, AFAIK it's a bunch of source files some of which may be added to the project if needed Cosimo: I think you should stay with autotools, otherwsie it might be a can of worms. Or get rid of gnulib. 09.01.2018, 15:55, "Cosimo Lupo"

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Cosimo Lupo
This is from the gnulib mailing list in reply to a similar question on how to use gnulib without autotools: https://lists.gnu.org/archive/html/bug-gnulib/2010-02/msg00248.html "Gnulib depends heavily on autoconf and automake. You could manually extract the portions you think you need and attempt

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Cosimo Lupo
Thanks for your help, Alfred. The problem is that very concept of "external dependency" seems to be at odds with the way gnulib is supposed to work. And the docs are clear that "Gnulib assumes that your project uses Autoconf. When using Gnulib, you will need to have Autoconf among your build

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Alfred Sawaya
Sorry, I did not got this hint.Well, you might still use gnulib as an external dependency (https://www.gnu.org/software/gnulib/manual/html_node/POSIX-Substitutes-Library.html#POSIX-Substitutes-Library). Maybe be it worth considering a better separation if the build tool is different.I need to

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Cosimo Lupo
Thanks. However, that's not exactly what I was looking for. The gnulib, by design, is not an external library that you link with, but a collection of modules that are meant to be copied into one's project. I would like to build ttfautohint with cmake (and ninja), not just adding ttfautohint as an

Re: [CMake] how to port to cmake a project using gnulib

2018-01-09 Thread Alfred Sawaya
Hello,I have some CMake projects that depend on autotools bases libs.I compile them as External project.https://cmake.org/cmake/help/latest/module/ExternalProject.htmlRegards