CMake: Rename liblzma_INSTALL_CMAKEDIR to XZ_INSTALL_CMAKEDIR

This commit is contained in:
Lasse Collin 2024-06-15 18:07:04 +03:00
parent 96abfe98c1
commit e1127e75cb
1 changed files with 3 additions and 3 deletions

View File

@ -1459,19 +1459,19 @@ install(DIRECTORY src/liblzma/api/
FILES_MATCHING PATTERN "*.h") FILES_MATCHING PATTERN "*.h")
# Install the CMake files that other packages can use to find liblzma. # Install the CMake files that other packages can use to find liblzma.
set(liblzma_INSTALL_CMAKEDIR set(XZ_INSTALL_CMAKEDIR
"${CMAKE_INSTALL_LIBDIR}/cmake/liblzma" "${CMAKE_INSTALL_LIBDIR}/cmake/liblzma"
CACHE STRING "Path to liblzma's .cmake files") CACHE STRING "Path to liblzma's .cmake files")
install(EXPORT liblzmaTargets install(EXPORT liblzmaTargets
NAMESPACE liblzma:: NAMESPACE liblzma::
FILE liblzma-targets.cmake FILE liblzma-targets.cmake
DESTINATION "${liblzma_INSTALL_CMAKEDIR}" DESTINATION "${XZ_INSTALL_CMAKEDIR}"
COMPONENT liblzma_Development) COMPONENT liblzma_Development)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config.cmake" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/liblzma-config-version.cmake" "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config-version.cmake"
DESTINATION "${liblzma_INSTALL_CMAKEDIR}" DESTINATION "${XZ_INSTALL_CMAKEDIR}"
COMPONENT liblzma_Development) COMPONENT liblzma_Development)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc" install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc"