From 1d3c61575fda0be6b2d50c9e32a343349d5cd5c0 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 5 Jun 2024 13:30:28 +0300 Subject: [PATCH] CMake: Fix wrong version variable liblzma_VERSION has never existed in the repository. xz_VERSION from the project() command was used for liblzma SOVERSION so use xz_VERSION here too. The wrong variable did no harm in practice as PROJECT_VERSION was used as the fallback. It has the same value as xz_VERSION. Fixes: 7e3493d40eac0c3fa3d5124097745a70e15c41f6 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6321672..ebf36b63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1356,7 +1356,7 @@ endif() include(CMakePackageConfigHelpers) write_basic_package_version_file( "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config-version.cmake" - VERSION "${liblzma_VERSION}" + VERSION "${xz_VERSION}" COMPATIBILITY SameMajorVersion) # Create liblzma-config.cmake. We use this spelling instead of