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 (cherry picked from commitafa938e429
)
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}"
|
DESTINATION "${liblzma_INSTALL_CMAKEDIR}"
|
||||||
COMPONENT liblzma_Development)
|
COMPONENT liblzma_Development)
|
||||||
|
|
||||||
if(NOT MSVC)
|
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc"
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzma.pc"
|
||||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
||||||
COMPONENT liblzma_Development)
|
COMPONENT liblzma_Development)
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
Loading…
Reference in New Issue