diff --git a/CMakeLists.txt b/CMakeLists.txt index aedc8e70..fb701ec3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1397,6 +1397,7 @@ endif() file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config.cmake" "${LZMA_CONFIG_CONTENTS}") + # Create liblzma.pc. If using CMake >= 3.20 and CMAKE_INSTALL_ paths # are relative to CMAKE_INSTALL_PREFIX, the .pc file will be relocatable # (that is, all paths will be relative to ${prefix}). Otherwise absolute @@ -1421,6 +1422,7 @@ endif() configure_file(src/liblzma/liblzma.pc.in liblzma.pc @ONLY) + # Install the library binary. The INCLUDES specifies the include path that # is exported for other projects to use but it doesn't install any files. install(TARGETS liblzma EXPORT liblzmaTargets