]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Relocate CMake target export definitions
authorDon Olmstead <don.j.olmstead@gmail.com>
Thu, 1 Feb 2024 20:49:11 +0000 (12:49 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 7 Feb 2024 18:17:07 +0000 (19:17 +0100)
commit20498320cdd38ac6db265596598e47e2d0602850
tree5fcd1f0638d1a5f8b40ae6720fa2072d1e0f1782
parent9d33c8163d69452079918676453b65f780b11de8
Relocate CMake target export definitions

When exporting a CMake target the `install(TARGETS ${ZLIB_INSTALL_LIBRARIES})` is repeated with an `EXPORT` parameter. On Windows this would install the `.dll` files into the `lib` directory.

Set the `EXPORT_NAME` earlier and unconditionally on the `TARGET`. Then move the `EXPORT` to a single `install(TARGETS)`.
CMakeLists.txt