mirror of
https://git.tukaani.org/xz.git
synced 2025-02-17 14:08:12 +00:00
CMake: Install liblzma.pc even with MSVC
I had misunderstood that it wouldn't be useful with MSVC.
vcpkg had been installing liblzma.pc with custom rules since 2020,
years before liblzma.pc support was added to CMakeLists.txt.
See:
eb895b95aa/ports/liblzma/portfile.cmake
https://github.com/microsoft/vcpkg/pull/39024#issuecomment-2145064670
(cherry picked from commit afa938e429c1ce07d26d02999352fb014b62ff3d)
This commit is contained in:
parent
42754176bd
commit
9c64d4fd78
@ -1411,11 +1411,9 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config.cmake"
|
||||
DESTINATION "${liblzma_INSTALL_CMAKEDIR}"
|
||||
COMPONENT liblzma_Development)
|
||||
|
||||
if(NOT MSVC)
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
||||
COMPONENT liblzma_Development)
|
||||
endif()
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
||||
COMPONENT liblzma_Development)
|
||||
|
||||
|
||||
#############################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user