mirror of https://git.tukaani.org/xz.git
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
This commit is contained in:
parent
35f8649f08
commit
afa938e429
|
@ -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…
Reference in New Issue