mirror of https://git.tukaani.org/xz.git
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: 7e3493d40e
This commit is contained in:
parent
5d1c649ba9
commit
1d3c61575f
|
@ -1356,7 +1356,7 @@ endif()
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
write_basic_package_version_file(
|
write_basic_package_version_file(
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/liblzma-config-version.cmake"
|
"${CMAKE_CURRENT_BINARY_DIR}/liblzma-config-version.cmake"
|
||||||
VERSION "${liblzma_VERSION}"
|
VERSION "${xz_VERSION}"
|
||||||
COMPATIBILITY SameMajorVersion)
|
COMPATIBILITY SameMajorVersion)
|
||||||
|
|
||||||
# Create liblzma-config.cmake. We use this spelling instead of
|
# Create liblzma-config.cmake. We use this spelling instead of
|
||||||
|
|
Loading…
Reference in New Issue