Skip to content

Commit

Permalink
compat copy for mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
Vollstrecker committed Dec 5, 2024
1 parent ed0c94e commit f842b90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_FILE:zlibstatic>
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
Expand Down

0 comments on commit f842b90

Please sign in to comment.