From b74d77a0ddb89b244e80fc61cebe8a032146c950 Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Thu, 5 Dec 2024 13:15:49 +0100 Subject: CMake: Install compatible DLL on MinGW. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4aaf62b..6b160fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -186,6 +186,13 @@ if(ZLIB_INSTALL_LIBRARIES) RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + if(ZLIB_INSTALL_COMPAT_DLL AND MINGW) + install(FILES $ + COMPONENT Development + RENAME libz.dll.a + DESTINATION "${CMAKE_INSTALL_LIBDIR}") + endif(ZLIB_INSTALL_COMPAT_DLL) + endif(ZLIB_BUILD_STATIC) configure_package_config_file(${zlib_SOURCE_DIR}/zlibConfig.cmake.in -- cgit v1.2.3-55-g6feb