mpir icon indicating copy to clipboard operation
mpir copied to clipboard

CMake support ?

Open ocommowi opened this issue 4 years ago • 2 comments

Thanks for maintaining MPIR. I was wondering if there are any plans to use CMake Makefile generator (cmake.org) in a near future for MPIR. This could allow the automatic generation of makefiles in an easy manner and the easy inclusion of MPIR in other projects that use cmake as well. Peraps even this could simplify the portability to several OSes.

ocommowi avatar Jul 13 '21 07:07 ocommowi

No plans. The GMP build system contains 40,000 lines of hacked automake. No one has the time to port that to CMake.

wbhart avatar Jul 13 '21 08:07 wbhart

There's at least one very basic cmake commit (not merged) that brings cmake to unoptimized builds (tho optimizations are a big part of this library). Imho, the best way to add support is to fork a separate library and focus only on modern cpus (i.e., drop support for many older cpus and compile options, at least to start). The build functionality here was grown over many years (decades), and as wbhart mentions it's not conducive to a quick translation to CMake.

KevinHake avatar Jul 13 '21 16:07 KevinHake