From 5279828635a95abdef82e691fc4979d362780e63 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 24 Jun 2024 20:14:43 +0300 Subject: [PATCH] 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. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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: #