CMake: Not experimental anymore

While the CMake support has gotten a lot less testing than
the Autotools-based build, the supported features should now
be equal. The output may differ slightly, for example,
liblzma.pc may have

    Libs.private: -pthread -lpthread

with Autotools on GNU/Linux. CMake doesn't put any options
in Libs.private because on modern glibc the pthread functions
are in libc. The options options aren't required to link static
liblzma into an application.

Autotools-based build doesn't generate or install
lib/cmake/liblzma-*.cmake files. This means that on most
platforms one cannot rely on

    find_package(liblzma 5.2.5 REQUIRED CONFIG)

or such finding those files.
This commit is contained in:
Lasse Collin 2024-06-24 20:14:43 +03:00
parent de215a0517
commit 5279828635
1 changed files with 6 additions and 3 deletions

View File

@ -4,9 +4,12 @@
#
# CMake support for building XZ Utils
#
# The complete CMake-based build hasn't been tested much yet and
# thus it's still slightly experimental. Testing this especially
# outside GNU/Linux and Windows would be great now.
# CMake 3.20 or later is recommended. Older versions down to 3.14 work
# too with the following limitations:
#
# - Translations aren't supported.
#
# - Generated liblzma.pc won't be relocatable.
#
# About CMAKE_BUILD_TYPE:
#