jq icon indicating copy to clipboard operation
jq copied to clipboard

Cmake

Open ghost opened this issue 7 years ago • 6 comments

JQ should have Cmake build option - I did a comparison of Cmake vs Autotools last January

http://github.com/svnpenn/glade/blob/master/build-system.md

I found that Cmake is lighter on dependencies - notably only the Cmake package and assorted libraries are required

whereas Autotools requires non library packages of m4, perl and texinfo

ghost avatar Jan 05 '18 05:01 ghost

My theory is that autotools should be used to construct platform profiles that consist of a makefile to setup some make vars, and a header file (maybe). Users should pick a profile and build it. No libtool.

nicowilliams avatar Jan 05 '18 05:01 nicowilliams

Just made a cmake version: https://github.com/district10/jq-cmake Hope this helpful.

district10 avatar Jan 18 '22 16:01 district10

This issue has been open for a while now without any follow-up. Does it mean that building jq with CMake is not a desire of the maintainers? It would be interesting to be able not only to build it with CMake, but also to be able to use it as a library with CMake's find_package() mechanism in a client program. This would also open the ability to publish jq as a library in Microsoft's vcpkg package manager.

fedapo avatar Sep 14 '23 11:09 fedapo

This issue has been open for a while now without any follow-up. Does it mean that building jq with CMake is not a desire of the maintainers?

It means we had a burst of energy for all the things that were critical and quite a few that weren't, then we made a release. Switching to CMake was not critical. We'll take a look in the coming weeks.

nicowilliams avatar Sep 16 '23 16:09 nicowilliams

That would be great. I have not done a vcpkg wrapper for anything yet but I am very motivated to do one for jq once there is cmake support for building it as a library.

phrrngtn avatar Oct 06 '23 01:10 phrrngtn