From: Lasse Collin Date: Mon, 24 Jun 2024 17:14:43 +0000 (+0300) Subject: CMake: Not experimental anymore X-Git-Tag: v5.7.1alpha~146 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=5279828635a95abdef82e691fc4979d362780e63;p=thirdparty%2Fxz.git 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fe29feb..5fd5c341 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: #