bug-gnu-libiconv
[Top][All Lists]
Advanced

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

[bug-gnu-libiconv] [bug #64293] Add CMake build system support


From: Chen Pi
Subject: [bug-gnu-libiconv] [bug #64293] Add CMake build system support
Date: Sun, 11 Jun 2023 04:05:23 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?64293>

                 Summary: Add CMake build system support
                   Group: libiconv
               Submitter: chenpi11
               Submitted: Sun 11 Jun 2023 08:05:21 AM UTC
                Category: Build
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 11 Jun 2023 08:05:21 AM UTC By: Chen Pi <chenpi11>
Nowadays, many C/C++ projects use CMake for compilation, which can be compiled
without a POSIX environment.

Firstly, CMake is a widely used modern build system and has become one of the
preferred compilation tools for many software projects. Compared to Autotools,
CMake has simpler and more intuitive syntax, as well as being more stable and
easier to maintain and expand. By supporting CMake, GNU LIBICONV can better
integrate into modern software development processes.

Secondly, I believe that CMake can also improve the convenience of building
GNU LIBICONV, such as compiling using MSVC toolchain on Windows operating
system, without requiring MinGW, GNU Make, GNU Autotools, Core POSIX
utilities, Grep, Awk, etc.

Furthermore, CMake is more stable than Autotools in cross-compiling.
Sometimes, when cross-compiling aarch64 GNU LIBICONV on MacOS using Autotools,
configure does not detect the aarch64 cross-compiler properly and ends up
compiling with the native x86_64 compiler without a clear warning, leading to
incorrect compilation results.

I'm submitting this item because some people here complained that libiconv
doesn't support CMake compilation, which caused their project development to
stagnate for a while.

Finally, I want to clarify that, after my testing, building libiconv using
CMake is totally feasible and has passed the tests. Of course, this is for my
redistribution version based on GNU LIBICONV and may not be entirely
applicable to GNU LIBICONV.

Thank you.

Here is my distribution of libiconv with CMake support:

[https://github.com/cppp-project/cppp-reiconv cppp-project/cppp-reiconv]









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64293>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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